Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
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");
        }
Ejemplo n.º 3
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");
        }
Ejemplo n.º 4
0
 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);
     }
 }