Ejemplo n.º 1
0
        public void Match_FailsWhenValueIsNotDouble()
        {
            DoubleHttpRouteConstraint constraint = new DoubleHttpRouteConstraint();
            bool match = TestValue(constraint, false);

            Assert.False(match);
        }
Ejemplo n.º 2
0
        public void Match_SucceedsWhenValueIsDoubleString()
        {
            DoubleHttpRouteConstraint constraint = new DoubleHttpRouteConstraint();
            bool match = TestValue(constraint, "3.14");

            Assert.True(match);
        }
Ejemplo n.º 3
0
        public void Match_FailsWhenValueIsNotParsableAsDouble()
        {
            DoubleHttpRouteConstraint constraint = new DoubleHttpRouteConstraint();
            bool match = TestValue(constraint, "what a nice day!");

            Assert.False(match);
        }
 public void Match_FailsWhenValueIsNotDouble()
 {
     DoubleHttpRouteConstraint constraint = new DoubleHttpRouteConstraint();
     bool match = TestValue(constraint, false);
     Assert.False(match);
 }
 public void Match_SucceedsWhenValueIsDoubleString()
 {
     DoubleHttpRouteConstraint constraint = new DoubleHttpRouteConstraint();
     bool match = TestValue(constraint, "3.14");
     Assert.True(match);
 }
 public void Match_FailsWhenValueIsNotParsableAsDouble()
 {
     DoubleHttpRouteConstraint constraint = new DoubleHttpRouteConstraint();
     bool match = TestValue(constraint, "what a nice day!");
     Assert.False(match);
 }