public void MaxValueProperty_MoreAttributes() { var model = new ClassWithMaxValueProperty { MaxValueProperty = 130 }; var result = (new Validator()).IsValidate(model); Assert.IsFalse(result); }
public void MaxValueProperty_LessAttributes() { var model = new ClassWithMaxValueProperty { MaxValueProperty = 30 }; var result = (new Validator()).IsValidate(model); Assert.IsTrue(result); }