public static void Main(String[] strArgList)
    {
        bool bResult = false;
        bool bDataOK;

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