public void Match_FailsWhenValueIsNotDecimal() { DecimalHttpRouteConstraint constraint = new DecimalHttpRouteConstraint(); bool match = TestValue(constraint, false); Assert.False(match); }
public void Match_SucceedsWhenValueIsDecimalString() { DecimalHttpRouteConstraint constraint = new DecimalHttpRouteConstraint(); bool match = TestValue(constraint, "3.14"); Assert.True(match); }
public void Match_FailsWhenValueIsNotParsableAsDecimal() { DecimalHttpRouteConstraint constraint = new DecimalHttpRouteConstraint(); bool match = TestValue(constraint, "what a nice day!"); Assert.False(match); }