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); }
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); }