runTest() public method

public runTest ( ) : bool
return bool
Esempio n. 1
0
    public static void Main(String[] args)
    {
        bool bResult = false;

        try
        {
            Co4237IsDigit o2Co4237IsDigit = new Co4237IsDigit();
            bResult = o2Co4237IsDigit.runTest();
        }
        catch (Exception exc)
        {
            bResult = false;
            Console.Error.WriteLine("Character- Co4237IsDigit main caught Exception!");
            Console.Error.WriteLine(exc.ToString());
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
 public static void Main( String[] args )
   {
   bool bResult = false; 
   try
     {
     Co4237IsDigit o2Co4237IsDigit = new Co4237IsDigit();
     bResult = o2Co4237IsDigit.runTest();
     }
   catch ( Exception exc )
     {
     bResult = false;
     Console.Error.WriteLine( "Character- Co4237IsDigit main caught Exception!" );
     Console.Error.WriteLine( exc.ToString() );
     }
   if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1;
   }