Пример #1
0
    public static void Main(String[] args)
    {
        bool            bResult = false;
        Co1708get_Count oCbTest = new Co1708get_Count();

        try
        {
            bResult = oCbTest.runTest();
        }
        catch (System.Exception ex)
        {
            Console.Error.Write(strTest);
            Console.Error.WriteLine(": Main() Uncaught exception");
            Console.Error.WriteLine(ex.ToString());
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
Пример #2
0
 public static void Main( String[] args )
 {
     bool bResult = false;	
     Co1708get_Count oCbTest = new Co1708get_Count();
     try
     {
         bResult = oCbTest.runTest();
     }
     catch( System.Exception ex )
     {
         Console.Error.Write( strTest );
         Console.Error.WriteLine(  ": Main() Uncaught exception" );
         Console.Error.WriteLine( ex.ToString() );
     }
     if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1;
 }