public void ThemeResultShouldBeNullNormally() { var context = new RequestContext(new StubHttpContext(), new RouteData()); var selector = new AdminThemeSelector(); var result = selector.GetTheme(context); Assert.That(result, Is.Null); }
public void ThemeResultShouldBeTheAdminAt100AfterBeingSet() { var context = new RequestContext(new StubHttpContext(), new RouteData()); AdminFilter.Apply(context); var selector = new AdminThemeSelector(); var result = selector.GetTheme(context); Assert.That(result, Is.Not.Null); Assert.That(result.ThemeName, Is.EqualTo("TheAdmin")); Assert.That(result.Priority, Is.EqualTo(100)); }