public void ReturnsFalse()
 {
     var greaterThanZeroRule = new GreaterThanZeroRule(0, "foo");
     greaterThanZeroRule.Validate().IsValid.ShouldBe(false);
 }
 public void SetsErrorMessageOnInvalid()
 {
     var greaterThanZeroRule = new GreaterThanZeroRule(0, "the supplied value must be greater than 0");
     greaterThanZeroRule.Validate().ErrorMessage.ShouldBe("the supplied value must be greater than 0");
 }
 public void ReturnsTrue()
 {
     var greaterThanZeroRule = new GreaterThanZeroRule(1, "foo");
     greaterThanZeroRule.Validate().IsValid.ShouldBe(true);
 }