Ejemplo n.º 1
0
 public void ValidStringIsValid()
 {
     var attribute = new MatchesAttribute(@"\d{3}-\d{3}-\d{4}");
     ValidationAssert.IsValid(attribute, this, "Valid");
 }
Ejemplo n.º 2
0
 public void WrongTypeIsNotValid()
 {
     var attribute = new MatchesAttribute(@"\d{3}-\d{3}-\d{4}");
     ValidationAssert.IsNotValid(attribute, this, "WrongType");
 }
Ejemplo n.º 3
0
 public void InvalidString()
 {
     var attribute = new MatchesAttribute(@"\d{3}-\d{3}-\d{4}");
     ValidationAssert.IsNotValid(attribute, this, "Invalid");
 }