test(weather): a rain or snow option is themed in a window and names itself there too

This commit is contained in:
maj00r
2026-11-30 19:29:18 +01:00
parent a87c1ebc4c
commit cb9c8cbb08
+19
View File
@@ -50,4 +50,23 @@ public class PrecipitationItemTests
ShowsText("OvercastRain", item);
}
[Fact]
public void In_a_window_the_option_looks_like_any_other_and_still_follows_the_temperature()
{
var item = new PrecipitationItem { Heavy = true };
var combo = new ComboBox { Items = { new ComboBoxItem { Content = "Bezchmurnie" }, item } };
var window = Controls.Show(combo, themed: true);
combo.IsDropDownOpen = true;
window.UpdateLayout();
Assert.NotNull(item.Template);
item.Snow = true;
ShowsText("OvercastSnow", item);
window.Close();
item.Snow = false;
ShowsText("OvercastRain", item);
}
}