public void DomainTests()
 {
     Assert.AreEqual(false, v.validate("codewars"));
     Assert.AreEqual(true, v.validate("g.co"));
     Assert.AreEqual(true, v.validate("codewars.com"));
     Assert.AreEqual(true, v.validate("CODEWARS.COM"));
     Assert.AreEqual(true, v.validate("sub.codewars.com"));
     Assert.AreEqual(false, v.validate("codewars.com-"));
     Assert.AreEqual(false, v.validate(".codewars.com"));
     Assert.AreEqual(false, v.validate("*****@*****.**"));
     Assert.AreEqual(false, v.validate("127.0.0.1"));
 }
Exemplo n.º 2
0
 public void DomainTest1()
 {
     Assert.AreEqual(false, v.validate("codewars"));
 }