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

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

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

            Assert.True(match);
        }
Exemple #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);
 }