mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-12-01 09:27:05 +01:00
test(weather): a rain or snow option is themed in a window and names itself there too
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user