public void ReturnsTrueForIncomingRequest() { var constraint = new IncomingOnlyRouteConstraint(); var match = constraint.Match(null, null, null, null, RouteDirection.IncomingRequest); Assert.True(match); }
public void ReturnsFalseForUrlGeneration() { var constraint = new IncomingOnlyRouteConstraint(); var match = constraint.Match(null, null, null, null, RouteDirection.UrlGeneration); Assert.False(match); }