Пример #1
0
    public static void Main(String [] args)
    {
        Boolean         bolResult = false;
        Co1659ctor_ifII cbX       = new Co1659ctor_ifII();

        if (Common.argContains(args, "/?"))
        {
            printUsage();
            Environment.ExitCode = 0;
            return;
        }
        try
        {
            bolResult = cbX.runTest();
        }
        catch (Exception exc_main)
        {
            bolResult = false;
            Console.WriteLine(s_strTFAbbrev + "  FAiL!  Error Err_9999zzz!  Uncaught Exception caught in main()");
            Console.WriteLine("exc_main==" + exc_main.ToString());
        }
        if (!bolResult)
        {
            Console.WriteLine("FullerPath=" + s_strTFPath + " " + s_strTFName);
            Console.WriteLine(" ");
            Console.WriteLine("FAiL!  " + s_strTFAbbrev);
            Console.WriteLine(" ");
        }
        if (bolResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
 public static void Main( String [] args )
 {
     Boolean bolResult = false;                                  
     Co1659ctor_ifII cbX = new Co1659ctor_ifII();
     if ( Common.argContains( args, "/?" ) )
     {
         printUsage();
         Environment.ExitCode =  0 ;
         return;
     }
     try
     {
         bolResult = cbX.runTest();
     }
     catch ( Exception exc_main )
     {
         bolResult = false;
         Console.WriteLine( s_strTFAbbrev +"  FAiL!  Error Err_9999zzz!  Uncaught Exception caught in main()" );
         Console.WriteLine( "exc_main=="+ exc_main.ToString() );
     }
     if ( ! bolResult )
     {
         Console.WriteLine( "FullerPath="+ s_strTFPath +" "+ s_strTFName );
         Console.WriteLine( " " );
         Console.WriteLine( "FAiL!  "+ s_strTFAbbrev );  
         Console.WriteLine( " " );
     }
     if ( bolResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; 
 }