public static void Main(String[] args) { Boolean bResult = false; String strW = null; Co2212ToString oCbTest = new Co2212ToString(); try { bResult = oCbTest.runTest(); } catch (Exception exc) { bResult = false; Console.Error.WriteLine("Co2212ToString.cs"); strW = "EXTENDEDINFO: "; strW = strW + exc.ToString(); Console.Error.WriteLine(strW); } if (bResult == true) { Environment.ExitCode = 0; } else { Environment.ExitCode = 1; } }
public static void Main( String[] args ) { Boolean bResult = false; String strW = null; Co2212ToString oCbTest = new Co2212ToString(); try { bResult = oCbTest.runTest(); } catch ( Exception exc ) { bResult = false; Console.Error.WriteLine( "Co2212ToString.cs" ); strW = "EXTENDEDINFO: "; strW = strW + exc.ToString() ; Console.Error.WriteLine( strW ); } if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; }