public static int OutputResults() { Console.WriteLine(TestsRun.ToString() + " tests Run"); Console.WriteLine(TestsFailed.ToString() + " tests Failed"); if (TestsFailed > 0) { Console.WriteLine("FAILED"); } else { Console.WriteLine("SUCCESS"); } var lResult = Console.ReadKey(); return(TestsFailed); }
public override string ToString() { return(string.Format("---{0} {1} {2} Passed, {3} Failed, {4} Skipped {5}", Status, Filename.PadRight(40), TestsPassed.ToString().PadLeft(3), TestsFailed.ToString().PadLeft(3), TestsSkipped.ToString().PadLeft(3), Result)); }