public void InvalidEmail_ThrowException(string Email) { try { Check.Email(Email); } catch (CustomException Exception) { Assert.AreEqual("Invalid Email", Exception.Message); } }
public void Email_Test() { var Result = User.Email("*****@*****.**"); Assert.AreEqual(true, Result); }