Ejemplo n.º 1
0
        public void Match_FailsWhenValueIsGreaterThanMaximum()
        {
            RangeHttpRouteConstraint constraint = new RangeHttpRouteConstraint(3, 5);
            bool match = TestValue(constraint, 6);

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

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

            Assert.True(match);
        }
Ejemplo n.º 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);
 }