public void Match_FailsWhenValueIsGreaterThanMaximum() { RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5); bool match = TestValue(constraint, 6); Assert.False(match); }
public void Match_SucceedsWhenValueIsEqualToMinimum() { RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5); bool match = TestValue(constraint, 3); Assert.True(match); }
public void Match_SucceedsWhenValueIsBetweenMinimumAndMaximum() { RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5); bool match = TestValue(constraint, 4); Assert.True(match); }
public void Match_FailsWhenValueIsLessThanMinimum() { RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5); bool match = TestValue(constraint, 2); Assert.False(match); }