public void Default_values_are_specified_in_invariant_theme() { var repository = new ThemeRepository(new ThemePersistence()); var invariantTheme = repository.GetInvariantTheme(); invariantTheme.Should().NotBeNull(); foreach (AppColor name in Enum.GetValues(typeof(AppColor))) { Color value = invariantTheme.GetColor(name); value.Should().NotBe(Color.Empty); } }
public void Default_values_are_specified_in_invariant_theme() { var themePathProvider = new ThemePathProvider(); var themeLoader = new ThemeLoader(new ThemeCssUrlResolver(themePathProvider), new ThemeFileReader()); var repository = new ThemeRepository(new ThemePersistence(themeLoader), themePathProvider); var invariantTheme = repository.GetInvariantTheme(); invariantTheme.Should().NotBeNull(); foreach (AppColor name in Enum.GetValues(typeof(AppColor))) { Color value = invariantTheme.GetColor(name); value.Should().NotBe(Color.Empty); } }