runTest() public method

public runTest ( ) : Boolean
return Boolean
Exemplo n.º 1
0
    public static void Main(String[] args)
    {
        Boolean bResult           = false;
        Co3039TrimStart_ChArr cb0 = new Co3039TrimStart_ChArr();

        try
        {
            bResult = cb0.runTest();
        }
        catch (System.Exception exc)
        {
            bResult = false;
            System.Console.Error.WriteLine("Co3039TrimStart_ChArr.");
            System.Console.Error.WriteLine(exc.ToString());
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 11;
        }
    }
 public static void Main( String[] args ) 
   {
   Boolean bResult = false; 
   Co3039TrimStart_ChArr cb0 = new Co3039TrimStart_ChArr();
   try
     {
     bResult = cb0.runTest();
     }
   catch ( System.Exception exc )
     {
     bResult = false;
     System.Console.Error.WriteLine( "Co3039TrimStart_ChArr." );
     System.Console.Error.WriteLine( exc.ToString() );
     }
   if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 11; 
   }