mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-28 18:47:28 +01:00
Stop printing a default for text-valued setting keys
An absent lang key does not mean English, it means follow the system language.
This commit is contained in:
@@ -18,6 +18,16 @@ public class SettingKeyCatalogTests
|
||||
Assert.Equal("vsync = false", SettingKeyCatalog.Annotate("vsync"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_text_valued_key_is_shown_without_a_default()
|
||||
{
|
||||
// An absent lang means "follow the operating system", not "English", and an
|
||||
// absent exe path means "go and find the binary" - neither has a default
|
||||
// worth printing.
|
||||
Assert.Equal("lang", SettingKeyCatalog.Annotate("lang"));
|
||||
Assert.Equal("starter.exe.path", SettingKeyCatalog.Annotate("starter.exe.path"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void A_composite_or_unknown_key_is_shown_as_written()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user