Exemplo n.º 1
0
    public static void Main(String[] strArgList)
    {
        bool bResult = false;
        bool bDataOK;

        try
        {
            IsSeparator_str_i ObjIsSeparator_str_i = new IsSeparator_str_i();
            bDataOK = ObjIsSeparator_str_i.ReadUnicodeData();
            if (!bDataOK)
            {
                Console.WriteLine("Not able to read the UniCode data from the file");
                return;
            }
            bResult = ObjIsSeparator_str_i.runTest();
        }
        catch (Exception exc)
        {
            bResult = false;
            Console.Error.WriteLine("IsSeparator_str_i main caught an Exception!" + exc.ToString());
            Console.Error.WriteLine(exc.ToString());
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
 public static void Main(String[] strArgList)
   {
   bool bResult = false; 
   bool bDataOK;            
   try
     {
     IsSeparator_str_i ObjIsSeparator_str_i = new IsSeparator_str_i();
     bDataOK = ObjIsSeparator_str_i.ReadUnicodeData();
     if(! bDataOK )
       {
       Console.WriteLine("Not able to read the UniCode data from the file");
       return ;
       }
     bResult = ObjIsSeparator_str_i.runTest();
     }
   catch ( Exception exc )
     {
     bResult = false;
     Console.Error.WriteLine( "IsSeparator_str_i main caught an Exception!" + exc.ToString());
     Console.Error.WriteLine( exc.ToString() );
     }
   if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1;
   }