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