예제 #1
0
        public void Match_FailsWhenValueIsGreaterThanMaximum()
        {
            RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5);
            bool match = TestValue(constraint, 6);

            Assert.False(match);
        }
예제 #2
0
        public void Match_SucceedsWhenValueIsEqualToMinimum()
        {
            RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5);
            bool match = TestValue(constraint, 3);

            Assert.True(match);
        }
예제 #3
0
        public void Match_SucceedsWhenValueIsBetweenMinimumAndMaximum()
        {
            RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5);
            bool match = TestValue(constraint, 4);

            Assert.True(match);
        }
예제 #4
0
        public void Match_FailsWhenValueIsLessThanMinimum()
        {
            RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5);
            bool match = TestValue(constraint, 2);

            Assert.False(match);
        }
 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);
 }