public void EmailCorrectFormat() { AccountValidate addr = new AccountValidate(); var r = addr.IsValidEmail("*****@*****.**"); Assert.IsTrue(r); }
public void EmailNull() { AccountValidate addr = new AccountValidate(); var r = addr.IsValidEmail(null); Assert.IsFalse(r); }
public void EmailWrongFormat() { AccountValidate addr = new AccountValidate(); var r = addr.IsValidEmail("user1.com"); Assert.IsFalse(r); }
public void EmailBlank() { AccountValidate addr = new AccountValidate(); var r = addr.IsValidEmail(""); Assert.IsFalse(r); }