using Nonemm.App.Theming; namespace Nonemm.App.Tests; public class ThemesTests { [Fact] public void TheThemesAreFoundByName() { Assert.Equal("light", Themes.Find("light").Name); Assert.Equal("dark", Themes.Find("DARK").Name); } [Fact] public void AThemeNobodyShipsFallsBackToTheN1mmColours() => Assert.Equal(Theme.Light, Themes.Find("solarized")); [Fact] public void OneBrushIsHandedOutPerColour() => Assert.Same(Themes.Brush(Theme.Light.Worth), Themes.Brush(Theme.Light.Worth)); [Fact] public void EveryThemePaintsTheFourStatesApart() { foreach (Theme theme in Themes.All) { Assert.Equal(4, new[] { theme.Worth, theme.Multiplier, theme.Multipliers, theme.Dupe }.Distinct().Count()); } } }