コード例 #1
0
 public void NullIsValid()
 {
     var attribute = new MaxLengthAttribute(10);
     ValidationAssert.IsValid(attribute, this, "NullString");
 }
コード例 #2
0
 public void TooLong()
 {
     var attribute = new MaxLengthAttribute(3);
     ValidationAssert.IsNotValid(attribute, this, "FourLetterWord");
 }
コード例 #3
0
 public void AtMaxLength()
 {
     var attribute = new MaxLengthAttribute(4);
     ValidationAssert.IsValid(attribute, this, "FourLetterWord");
 }