Exemplo n.º 1
0
 public void Test_02_TestX400Email()
 {
     EmailAnalyzer da = new EmailAnalyzer();
     Assert.IsNotNull(da, "The Email Analyzer is null therefore will fail!");
     string email = "CN=qa1,OU=Disabled Accounts,DC=uk,DC=workshare,DC=com";
     string[] list = new string[] { "CN=qa1,OU=Disabled Accounts,DC=uk,DC=workshare,DC=com", "CN=qa2,OU=Disabled Accounts,DC=uk,DC=workshare,DC=com" };
     bool res = da.IsInSameDomain(email, list);
     Assert.IsTrue(res, "The x400 are not in the same domain!");
 }
Exemplo n.º 2
0
 public void Test_03_TestX500Email()
 {
     EmailAnalyzer da = new EmailAnalyzer();
     Assert.IsNotNull(da, "The Email Analyzer is null therefore will fail!");
     string email = "/o=Workshare Technology/ou=SQLDEV/cn=Recipients/cn=Steve";
     string[] list = new string[] { "/o=Workshare Technology/ou=SQLDEV/cn=Recipients/cn=Steve", "/o=Workshare Technology/ou=SQLDEV/cn=Recipients/cn=pair" };
     bool res = da.IsInSameDomain(email, list);
     Assert.IsTrue(res, "The x400 are not in the same domain!");
 }
Exemplo n.º 3
0
 public void Test_01_TestSmtpEmail()
 {
     EmailAnalyzer da = new EmailAnalyzer();
     Assert.IsNotNull(da, "The Email Analyzer is null therefore will fail!");
     string email = "*****@*****.**";
     string[] list = new string[] { "*****@*****.**", "*****@*****.**" };
     bool res = da.IsInSameDomain(email, list);
     Assert.IsTrue(res, "The Smtp are not in the same domain!");
 }