예제 #1
0
 public void IsValid()
 {
     Assert.IsTrue(EmailUtility.IsValid("*****@*****.**"));
     Assert.IsTrue(EmailUtility.IsValid("*****@*****.**"));
     Assert.IsTrue(EmailUtility.IsValid("*****@*****.**"));
     Assert.IsFalse(EmailUtility.IsValid("nodot@mailcom"));
     Assert.IsFalse(EmailUtility.IsValid("no.dot@mail"));
     Assert.IsFalse(EmailUtility.IsValid("no.no.no.no.dot@mydomain"));
 }