public void EmailValidation_IsFalse() { List <string> incorrectEmails = new List <string>(); incorrectEmails.Add(""); incorrectEmails.Add("@"); incorrectEmails.Add("this is an invalid pattern"); incorrectEmails.Add("invalid@@@pattern@gmail@.@com"); incorrectEmails.Add("-------"); incorrectEmails.Add("incorrect.email.email.-com"); foreach (string pattern in incorrectEmails) { Assert.IsFalse(_regForm.EmailValidation(pattern)); } }