diff --git a/StarterNG.Tests/PrecipitationItemTests.cs b/StarterNG.Tests/PrecipitationItemTests.cs index 0b06eda..7574c51 100644 --- a/StarterNG.Tests/PrecipitationItemTests.cs +++ b/StarterNG.Tests/PrecipitationItemTests.cs @@ -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); + } }