public static int Main() { NullHandle t = new NullHandle(); bool longPassed = false; bool shortPassed = false; if (t.RunTests(false)) { Console.WriteLine("Short WR Test Passed!"); shortPassed = true; } else { Console.WriteLine("Short WR Test Failed!"); } Console.WriteLine(); Console.WriteLine(); if (t.RunTests(true)) { Console.WriteLine("Long WR Test Passed!"); longPassed = true; } else { Console.WriteLine("Long WR Test Failed!"); } Console.WriteLine(); Console.WriteLine(); if (longPassed && shortPassed) { Console.WriteLine("Test Passed!"); return(100); } Console.WriteLine("Test Failed!"); return(1); }
public static int Main() { NullHandle t = new NullHandle(); bool longPassed = false; bool shortPassed = false; if (t.RunTests(false)) { Console.WriteLine("Short WR Test Passed!"); shortPassed = true; } else { Console.WriteLine("Short WR Test Failed!"); } Console.WriteLine(); Console.WriteLine(); if (t.RunTests(true)) { Console.WriteLine("Long WR Test Passed!"); longPassed = true; } else { Console.WriteLine("Long WR Test Failed!"); } Console.WriteLine(); Console.WriteLine(); if (longPassed && shortPassed) { Console.WriteLine("Test Passed!"); return 100; } Console.WriteLine("Test Failed!"); return 1; }