public static void Main(String[] args) { bool bResult = false; try { Co4236ToString o2Co4236ToString = new Co4236ToString(); bResult = o2Co4236ToString.runTest(); } catch (Exception exc) { bResult = false; Console.Error.WriteLine("Character- Co4236ToString main caught Exception!"); Console.Error.WriteLine(exc.ToString()); } if (bResult == true) { Environment.ExitCode = 0; } else { Environment.ExitCode = 1; } }
public static void Main( String[] args ) { bool bResult = false; try { Co4236ToString o2Co4236ToString = new Co4236ToString(); bResult = o2Co4236ToString.runTest(); } catch ( Exception exc ) { bResult = false; Console.Error.WriteLine( "Character- Co4236ToString main caught Exception!" ); Console.Error.WriteLine( exc.ToString() ); } if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; }