Exemplo n.º 1
0
 public void StringRequiredRule_True()
 {
     var rule = new StringRequiredValidationRule();
     Assert.IsTrue(rule.Validate("Test", System.Globalization.CultureInfo.CurrentCulture).IsValid);
 }
Exemplo n.º 2
0
 public void StringRequiredRule_Null()
 {
     var rule = new StringRequiredValidationRule();
     Assert.IsFalse(rule.Validate(null, System.Globalization.CultureInfo.CurrentCulture).IsValid);
 }