Пример #1
0
 public void CanSelectASettingsThemeWithInvalidWebConfigTheme()
 {
     var settings = MockAppFactory.GetMockSettings();
     var mapper = new MockPathMapper();
     var themeElement = new ThemeElement{ SelectedTheme = "InvalidTheme" };
     var selectedTheme = themeElement.FindTheme(settings, mapper);
     Assert.AreEqual("PerfectBlemish", selectedTheme);
 } 
Пример #2
0
 public void CanSelectAWebConfigTheme()
 {
     var settings = MockAppFactory.GetMockSettings();
     var mapper = new MockPathMapper();
     var themeElement = new ThemeElement{ SelectedTheme = "PrePaid" };
     var selectedTheme = themeElement.FindTheme(settings, mapper);
     Assert.AreEqual("PrePaid", selectedTheme);
 }
Пример #3
0
 public void ReturnsNullIfNeitherExists()
 {
     var settings = MockAppFactory.GetMockSettings();
     settings.BlogTheme = "";
     var mapper = new MockPathMapper();
     var themeElement = new ThemeElement();
     var selectedTheme = themeElement.FindTheme(settings, mapper);
     Assert.IsNull(selectedTheme);
 }