List a key taken out of eu07.ini once

A uart or uarttune the settings no longer write was found missing twice, as a
key of set length and as one the file had, and showed twice among the changes.
This commit is contained in:
maj00r
2026-11-03 21:51:54 +01:00
parent c10d771f00
commit d95182f17c
2 changed files with 15 additions and 1 deletions

View File

@@ -319,6 +319,18 @@ public class SettingsStoreTests
Assert.DoesNotContain(lines, l => l.StartsWith("uart "));
}
[Fact]
public void A_disabled_uart_is_one_change()
{
var installation = WithHome(new InMemoryFileSystem().WithFile(UserIni, "uart COM3 57600 0.1\n"));
installation.SettingsStore.Load();
installation.SettingsStore.Settings.UartEnabled = false;
var changes = installation.SettingsStore.Changes(installation.SettingsStore.Settings);
Assert.Equal(new IniChange("uart", "COM3 57600 0.1", null), Assert.Single(changes, c => c.Key == "uart"));
}
[Fact]
public void The_graphics_card_choice_survives_a_round_trip()
{