Beispiel #1
0
    public static void Main(String[] args)
    {
        Boolean         bResult = false;
        Co1730Adapter_I oCbTest = new Co1730Adapter_I();

        if (args != null)
        {
            if (Array.IndexOf(args, "/v") != -1)
            {
                oCbTest.verbose = true;
            }
        }
        try
        {
            bResult = oCbTest.runTest();
        }
        catch (Exception ex)
        {
            bResult = false;
            Console.WriteLine(strTest + " " + strPath);
            Console.WriteLine(strTest + " E_1000000");
            Console.WriteLine(strTest + "FAiL: Uncaught exception detected in Main()");
            Console.WriteLine(strTest + " " + ex.ToString());
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
 public static void Main( String[] args )
 {
     Boolean bResult = false;	
     Co1730Adapter_I oCbTest = new Co1730Adapter_I();
     if ( args != null )
     {
         if ( Array.IndexOf( args, "/v" ) != -1 )
         {
             oCbTest.verbose = true;
         }
     }
     try
     {
         bResult = oCbTest.runTest();
     }
     catch( Exception ex )
     {
         bResult = false;
         Console.WriteLine( strTest + " " + strPath );
         Console.WriteLine( strTest + " E_1000000" );
         Console.WriteLine( strTest + "FAiL: Uncaught exception detected in Main()" );
         Console.WriteLine( strTest + " " + ex.ToString() );
     }
     if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1;
 }