public void Match_FailsWhenValueIsNotLong() { LongHttpRouteConstraint constraint = new LongHttpRouteConstraint(); bool match = TestValue(constraint, 3.14M); Assert.False(match); }
public void Match_SucceedsWhenValueIsLongString() { LongHttpRouteConstraint constraint = new LongHttpRouteConstraint(); bool match = TestValue(constraint, "123456790"); Assert.True(match); }
public void Match_FailsWhenValueIsNotParsableAsLong() { LongHttpRouteConstraint constraint = new LongHttpRouteConstraint(); bool match = TestValue(constraint, "43.567"); Assert.False(match); }