示例#1
0
 public void InvalidEmailTooManyDots()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
 }
示例#2
0
 public void InvalidEmailAddressCapital()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
     Assert.IsFalse(RegexOperations.ValidateEmail("*****@*****.**"));
 }
示例#3
0
 public void InvalidEmailNoDot()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("there@isnodothere"));
 }
示例#4
0
 public void InvalidEmailMultipleAtSign()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("toomany@@atsign.com"));
     Assert.IsFalse(RegexOperations.ValidateEmail("toom@[email protected]"));
 }
示例#5
0
 public void InvalidEmailNoAtSign()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail("missingatsign.com"));
 }
示例#6
0
 public void ValidEmailAddress()
 {
     Assert.IsTrue(RegexOperations.ValidateEmail("*****@*****.**"));
 }
示例#7
0
 public void InvalidEmailEmptyStrnig()
 {
     Assert.IsFalse(RegexOperations.ValidateEmail(""));
 }