Example #1
0
    public static void Main(String[] args)
    {
        bool                 bResult = false;
        StringBuilder        sblMsg  = new StringBuilder(99);
        Co1187ToString_Dupl2 cbA     = new Co1187ToString_Dupl2();

        try
        {
            bResult = cbA.runTest();
            Console.Error.WriteLine("Co1187ToString_Dupl2.cs  runTest() finished.");
        }
        catch (Exception exc)
        {
            bResult = false;
            Console.Error.WriteLine("Co1187ToString_Dupl2.cs");
            sblMsg.Length = 0;
            sblMsg.Append("EXTENDEDINFO: (E_999zzz) ");
            sblMsg.Append(exc.ToString());
            Console.Error.WriteLine(sblMsg.ToString());
        }
        if (!bResult)
        {
            Console.Error.WriteLine("Co1187ToString_Dupl2.cs");
        }
        if (bResult == true)
        {
            Environment.ExitCode = 0;
        }
        else
        {
            Environment.ExitCode = 1;
        }
    }
 public static void Main( String[] args )
   {
   bool bResult = false; 
   StringBuilder sblMsg = new StringBuilder( 99 );
   Co1187ToString_Dupl2 cbA = new Co1187ToString_Dupl2();
   try
     {
     bResult = cbA.runTest();
     Console.Error.WriteLine( "Co1187ToString_Dupl2.cs  runTest() finished." );
     }
   catch ( Exception exc )
     {
     bResult = false;
     Console.Error.WriteLine(  "Co1187ToString_Dupl2.cs"  );
     sblMsg.Length =  0 ;
     sblMsg.Append( "EXTENDEDINFO: (E_999zzz) " );
     sblMsg.Append( exc.ToString() );
     Console.Error.WriteLine(  sblMsg.ToString()  );
     }
   if ( ! bResult )
     {
     Console.Error.WriteLine(  "Co1187ToString_Dupl2.cs"  );
     }
   if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; 
   }