コード例 #1
0
ファイル: TldVerifyTest.cs プロジェクト: tompipe/uniaccept-cs
 public void testVerifyTldOffline()
 {
     try
     {
         TldVerify tldVerify = new TldVerify();
         //assert.assertTrue(tldVerify.verifyTldOffline("AERO."));
         assert.assertTrue(tldVerify.verifyTldOffline("AERO", "testDB.txt"));
         assert.assertFalse(tldVerify.verifyTldOffline("sss"));
         //assert.assertTrue(tldVerify.verifyTldOffline(".AERO."));
     }
     catch (Exception e)
     {
         throw new TLDVerifyException(e);
     }
 }
コード例 #2
0
ファイル: TldVerifyTest.cs プロジェクト: icann/uniaccept-cs
 public void testVerifyTldOffline()
 {
     try
     {
         TldVerify tldVerify = new TldVerify();
         //assert.assertTrue(tldVerify.verifyTldOffline("AERO."));
         assert.assertTrue(tldVerify.verifyTldOffline("AERO", "testDB.txt"));
         assert.assertFalse(tldVerify.verifyTldOffline("sss"));
         //assert.assertTrue(tldVerify.verifyTldOffline(".AERO."));
     }
     catch (Exception e)
     {
         throw new TLDVerifyException(e);
     }
 }
コード例 #3
0
ファイル: TldVerifyTest.cs プロジェクト: tompipe/uniaccept-cs
 public void testVerifyTld()
 {
     try
     {
         TldVerify tldVerify = new TldVerify();
         assert.assertTrue(tldVerify.verifyTld("AERO."));
         assert.assertTrue(tldVerify.verifyTld("AERO"));
         assert.assertTrue(tldVerify.verifyTld("ICANN.ORG"));
         assert.assertTrue(tldVerify.verifyTld("icann.org"));
         //assert.assertFalse(tldVerify.verifyTld("SS"));
     }
     catch (Exception e)
     {
         throw new TLDVerifyException(e);
     }
 }
コード例 #4
0
ファイル: TldVerifyTest.cs プロジェクト: icann/uniaccept-cs
 public void testVerifyTld()
 {
     try
     {
         TldVerify tldVerify = new TldVerify();
         assert.assertTrue(tldVerify.verifyTld("AERO."));
         assert.assertTrue(tldVerify.verifyTld("AERO"));
         assert.assertTrue(tldVerify.verifyTld("ICANN.ORG"));
         assert.assertTrue(tldVerify.verifyTld("icann.org"));
         //assert.assertFalse(tldVerify.verifyTld("SS"));
     }
     catch (Exception e)
     {
         throw new TLDVerifyException(e);
     }
 }
コード例 #5
0
ファイル: Main.cs プロジェクト: icann/uniaccept-cs
        public void main(string[] args)
        {
            string domainName = args.Length > 0 ? args[0] : DEFAULT_DOMAIN;
            Console.WriteLine("Verifying domain " + domainName + " using DNS protocol ");
            TldVerify verify = new TldVerify();
            bool b = verify.verifyTld(domainName);
            Console.WriteLine("The result is " + b);
            Console.WriteLine("Verifying domain " + domainName + " using Offline method");

            try
            {
                bool b1 = verify.verifyTldOffline(domainName);
                Console.WriteLine("The result is " + b1);
            }
            catch (TLDVerifyException e)
            {
                Console.WriteLine("Exception " + e.Message);
            }
            Console.WriteLine("\nEnter test to execute test routines");
        }
コード例 #6
0
        public void main(string[] args)
        {
            string domainName = args.Length > 0 ? args[0] : DEFAULT_DOMAIN;

            Console.WriteLine("Verifying domain " + domainName + " using DNS protocol ");
            TldVerify verify = new TldVerify();
            bool      b      = verify.verifyTld(domainName);

            Console.WriteLine("The result is " + b);
            Console.WriteLine("Verifying domain " + domainName + " using Offline method");

            try
            {
                bool b1 = verify.verifyTldOffline(domainName);
                Console.WriteLine("The result is " + b1);
            }
            catch (TLDVerifyException e)
            {
                Console.WriteLine("Exception " + e.Message);
            }
            Console.WriteLine("\nEnter test to execute test routines");
        }