public void AUrlIsNotAFriendlyRootUrlIfUrlValueSetWithAValidUrl() { var routeValueDictionary = new RouteValueDictionary(new Dictionary<string, object> { {"url", "aaa/bbb/cccc"} }); var friendlyUrls = new FriendlyUrlRoot(); Assert.IsFalse(friendlyUrls.Match(null, null, null, routeValueDictionary, RouteDirection.IncomingRequest)); }
public void AUrlIsAFriendlyRootUrlIfUrlValueIsNotSet(string urlValue) { var routeValueDictionary = new RouteValueDictionary(new Dictionary<string, object> { {"url", urlValue} }); var friendlyUrls = new FriendlyUrlRoot(); Assert.IsTrue(friendlyUrls.Match(null, null, null, routeValueDictionary, RouteDirection.IncomingRequest)); }