public void Error(string message, Exception exception) { ConsoleColor color = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(message); Console.WriteLine(exception); Console.ForegroundColor = color; }
public void WhenCallingErrorShouldEnterErrorMethod() { ConsoleLogger logger = new ConsoleLogger(); logger.Error("Test String", new Exception()); }