コード例 #1
0
ファイル: co1501add_stress.cs プロジェクト: ydunk/masters
    public static void Main(String[] args)
    {
        int              inLoops0 = -2;
        int              inLoops1 = -2;
        bool             bResult  = false;
        StringBuilder    sblMsg   = new StringBuilder(99);
        Co1501Add_Stress cbA      = new Co1501Add_Stress();

        if (inLoops0 < 2)
        {
            inLoops0 = 2;
        }
        if (inLoops1 < 2)
        {
            inLoops1 = 2;
        }
        try
        {
            bResult = cbA.runTest
                      (
                inLoops0
                , inLoops1
                      );
        }
        catch (Exception exc_main)
        {
            bResult = false;
            Console.Error.WriteLine("POINTTOBREAK:  FAiL!  Error Err_999zzz! (Co1501Add_Stress) Uncaught Exception caught in main(), exc_main==" + exc_main);
        }
        if (!bResult)
        {
            Console.Error.WriteLine("Co1501Add_Stress.cs   FAiL!");
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
コード例 #2
0
ファイル: co1501add_stress.cs プロジェクト: ArildF/masters
 public static void Main( String[] args )
 {
     int inLoops0 = -2;
     int inLoops1 = -2;
     bool bResult = false; 
     StringBuilder sblMsg = new StringBuilder( 99 );
     Co1501Add_Stress cbA = new Co1501Add_Stress();
     if ( inLoops0 < 2 )
         inLoops0 = 2;
     if ( inLoops1 < 2 )
         inLoops1 = 2;
     try
     {
         bResult = cbA.runTest
             (
             inLoops0
             ,inLoops1
             );
     }
     catch ( Exception exc_main )
     {
         bResult = false;
         Console.Error.WriteLine(  "POINTTOBREAK:  FAiL!  Error Err_999zzz! (Co1501Add_Stress) Uncaught Exception caught in main(), exc_main==" + exc_main  );
     }
     if ( ! bResult )
         Console.Error.WriteLine(  "Co1501Add_Stress.cs   FAiL!"  );
     if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; 
 }