public void GetUrlFromControllerForRoutedActionWorksProperly() { var urlRooted = NavigationItemAttribute.GetUrlFromController(typeof(DummyController1), "Rooted"); Assert.Equal("~/Dummy2", urlRooted); }
public void GetUrlFromControllerForDefaultActionWorksProperly() { var urlIndex = NavigationItemAttribute.GetUrlFromController(typeof(DummyController1), "Index"); Assert.Equal("~/Dummy", urlIndex); }
public void GetUrlFromControllerForOverriddenActionWorksProperly() { var urlOverriden = NavigationItemAttribute.GetUrlFromController(typeof(DummyController1), "Overridden"); Assert.Equal("~/Dummy/Some", urlOverriden); }