public void Match_FailsWhenValueIsNotBool() { BoolHttpRouteConstraint constraint = new BoolHttpRouteConstraint(); bool match = TestValue(constraint, 123); Assert.False(match); }
public void Match_SucceedsWhenValueIsTrueString() { BoolHttpRouteConstraint constraint = new BoolHttpRouteConstraint(); bool match = TestValue(constraint, "true"); Assert.True(match); }
public void Match_FailsWhenValueIsNotParsableAsBool() { BoolHttpRouteConstraint constraint = new BoolHttpRouteConstraint(); bool match = TestValue(constraint, "wakawaka"); Assert.False(match); }
public void Match_FailsWhenValueIsNotBool() { BoolHttpRouteConstraint constraint = new BoolHttpRouteConstraint(); bool match = TestValue(constraint, 123); Assert.False(match); }
public void Match_SucceedsWhenValueIsTrueString() { BoolHttpRouteConstraint constraint = new BoolHttpRouteConstraint(); bool match = TestValue(constraint, "true"); Assert.True(match); }
public void Match_FailsWhenValueIsNotParsableAsBool() { BoolHttpRouteConstraint constraint = new BoolHttpRouteConstraint(); bool match = TestValue(constraint, "wakawaka"); Assert.False(match); }