public static void Main(String[] args) { bool bResult = false; Co8599get_IsFixedSize oCbTest = new Co8599get_IsFixedSize(); try { bResult = oCbTest.runTest(); } catch (Exception ex) { bResult = false; Console.WriteLine(s_strTFName + s_strTFPath); Console.WriteLine(s_strTFName + "E_1000000"); Console.WriteLine(s_strTFName + "FAiL: Uncaught exception detected in Main()"); Console.WriteLine(s_strTFName + ex.ToString()); } if (bResult == true) { Environment.ExitCode = 0; } else { Environment.ExitCode = 1; } }
public static void Main( String[] args ) { bool bResult = false; Co8599get_IsFixedSize oCbTest = new Co8599get_IsFixedSize(); try { bResult = oCbTest.runTest(); } catch( Exception ex ) { bResult = false; Console.WriteLine( s_strTFName+ s_strTFPath ); Console.WriteLine( s_strTFName+ "E_1000000" ); Console.WriteLine( s_strTFName+ "FAiL: Uncaught exception detected in Main()" ); Console.WriteLine( s_strTFName+ ex.ToString() ); } if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; }