private void WriteOutputLine(string testName, string text, ColorStyle style = ColorStyle.Output) { var currentBackgroundColor = Console.BackgroundColor; var spectreStyle = new Style(style.AsForegroundColorOn(currentBackgroundColor), currentBackgroundColor, style.AsDecoration()); WriteOutputLine(testName, text, spectreStyle); }
public void WriteLine(ColorStyle style, string text) { var currentBackgroundColor = Console.BackgroundColor; var spectreStyle = new Style(style.AsForegroundColorOn(currentBackgroundColor), currentBackgroundColor, style.AsDecoration()); _console.WriteLine(text, spectreStyle); }