public static void printTestStatus(string message) { setupNewStreamWriterForThread( ); if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Grey, true); } if (logWriter == null) { if (!logSilent) { Console.WriteLine(message + "\n"); } } else { logWriter.WriteLine(message + "\n"); } if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Grey, false); } closeCurrentStreamWriterForThread( ); }
public static void printError(string error) { setupNewStreamWriterForThread( ); if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Cyan); } if (logWriter == null) { if (!logSilent) { Console.Write("==>"); } } else { logWriter.Write("==>"); } if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Red); } if (logWriter == null) { if (!logSilent) { Console.WriteLine("ERROR: " + error); } } else { logWriter.WriteLine("ERROR: " + error); } if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Grey, false); } if (logWriter == null) { if (!logSilent) { Console.WriteLine( ); } } else { logWriter.WriteLine( ); } closeCurrentStreamWriterForThread( ); if (RunTest.runningConcurrently) { RunTest.g_mutex.WaitOne( ); } }
public static void printSuccess(string attribute, string message) { setupNewStreamWriterForThread( ); if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Cyan); } if (logWriter == null) { if (!logSilent) { Console.Write("==>"); } } else { logWriter.Write("==>"); } if (attribute != null) { if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Yellow, true); } if (logWriter == null) { if (!logSilent) { Console.Write(attribute + ": "); } } else { logWriter.Write(attribute + ": "); } } if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Green); } if (logWriter == null) { if (!logSilent) { Console.WriteLine(message); } } else { logWriter.WriteLine(message); } if (color) { ConsoleColor.SetForeGroundColor(ConsoleColor.ForeGroundColor.Grey, false); } if (logWriter == null) { if (!logSilent) { Console.WriteLine( ); } } else { logWriter.WriteLine( ); } closeCurrentStreamWriterForThread( ); }