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