public static void Main(String [] args) { Co1821 runClass = new Co1821(); if (args.Length > 0) { Console.WriteLine("Verbose ON!"); runClass.verbose = true; } Boolean bResult = runClass.runTest(); if (!bResult) { Console.WriteLine(runClass.s_strTFPath + runClass.s_strTFName); Console.Error.WriteLine(" "); Console.Error.WriteLine("FAiL! " + runClass.s_strTFAbbrev); Console.Error.WriteLine(" "); Console.Error.WriteLine("ACTIVE BUGS: " + runClass.s_strActiveBugNums); } if (bResult == true) { Environment.ExitCode = 0; } else { Environment.ExitCode = 1; } }
public static void Main( String [] args ) { Co1821 runClass = new Co1821(); if ( args.Length > 0 ) { Console.WriteLine( "Verbose ON!" ); runClass.verbose = true; } Boolean bResult = runClass.runTest(); if ( ! bResult ) { Console.WriteLine( runClass.s_strTFPath + runClass.s_strTFName ); Console.Error.WriteLine( " " ); Console.Error.WriteLine( "FAiL! "+ runClass.s_strTFAbbrev ); Console.Error.WriteLine( " " ); Console.Error.WriteLine( "ACTIVE BUGS: " + runClass.s_strActiveBugNums ); } if ( bResult == true ) Environment.ExitCode = 0; else Environment.ExitCode = 1; }