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

            Assert.AreEqual(true, Result);
        }