public void Match_FailsWhenValueIsNotFloat()
        {
            FloatHttpRouteConstraint constraint = new FloatHttpRouteConstraint();
            bool match = TestValue(constraint, false);

            Assert.False(match);
        }
        public void Match_SucceedsWhenValueIsFloatString()
        {
            FloatHttpRouteConstraint constraint = new FloatHttpRouteConstraint();
            bool match = TestValue(constraint, "3.14");

            Assert.True(match);
        }
        public void Match_FailsWhenValueIsNotParsableAsFloat()
        {
            FloatHttpRouteConstraint constraint = new FloatHttpRouteConstraint();
            bool match = TestValue(constraint, "what a nice day!");

            Assert.False(match);
        }
 public void Match_FailsWhenValueIsNotFloat()
 {
     FloatHttpRouteConstraint constraint = new FloatHttpRouteConstraint();
     bool match = TestValue(constraint, false);
     Assert.False(match);
 }
 public void Match_SucceedsWhenValueIsFloatString()
 {
     FloatHttpRouteConstraint constraint = new FloatHttpRouteConstraint();
     bool match = TestValue(constraint, "3.14");
     Assert.True(match);
 }
 public void Match_FailsWhenValueIsNotParsableAsFloat()
 {
     FloatHttpRouteConstraint constraint = new FloatHttpRouteConstraint();
     bool match = TestValue(constraint, "what a nice day!");
     Assert.False(match);
 }