public TestConsole(ConsoleSink sink) { _sink = sink; _parser = new AnsiParser(OnParseWrite); BackgroundColor = DefaultBackgroundColor; ForegroundColor = DefaultForegroundColor; }
private Tuple<ConsoleLogger, ConsoleSink> SetUp(Func<string, LogLevel, bool> filter, bool includeScopes = false) { // Arrange var sink = new ConsoleSink(); var console = new TestConsole(sink); var logger = new ConsoleLogger(_loggerName, filter, includeScopes); logger.Console = console; return new Tuple<ConsoleLogger, ConsoleSink>(logger, sink); }
public TestConsole(ConsoleSink sink) { _sink = sink; BackgroundColor = DefaultBackgroundColor; ForegroundColor = DefaultForegroundColor; }