public void Match_FailsWhenValueIsNotInt()
        {
            IntHttpRouteConstraint constraint = new IntHttpRouteConstraint();
            bool match = TestValue(constraint, 3.14M);

            Assert.False(match);
        }
        public void Match_SucceedsWhenValueIsIntString()
        {
            IntHttpRouteConstraint constraint = new IntHttpRouteConstraint();
            bool match = TestValue(constraint, "42");

            Assert.True(match);
        }
        public void Match_FailsWhenValueIsNotParsableAsInt()
        {
            IntHttpRouteConstraint constraint = new IntHttpRouteConstraint();
            bool match = TestValue(constraint, "43.567");

            Assert.False(match);
        }
 public void Match_FailsWhenValueIsNotInt()
 {
     IntHttpRouteConstraint constraint = new IntHttpRouteConstraint();
     bool match = TestValue(constraint, 3.14M);
     Assert.False(match);
 }
 public void Match_SucceedsWhenValueIsIntString()
 {
     IntHttpRouteConstraint constraint = new IntHttpRouteConstraint();
     bool match = TestValue(constraint, "42");
     Assert.True(match);
 }
 public void Match_FailsWhenValueIsNotParsableAsInt()
 {
     IntHttpRouteConstraint constraint = new IntHttpRouteConstraint();
     bool match = TestValue(constraint, "43.567");
     Assert.False(match);
 }