예제 #1
0
 public TestConsole(ConsoleSink sink)
 {
     _sink           = sink;
     _parser         = new AnsiParser(OnParseWrite);
     BackgroundColor = DefaultBackgroundColor;
     ForegroundColor = DefaultForegroundColor;
 }
예제 #2
0
 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);
 }
예제 #3
0
 public TestConsole(ConsoleSink sink)
 {
     _sink           = sink;
     BackgroundColor = DefaultBackgroundColor;
     ForegroundColor = DefaultForegroundColor;
 }
예제 #4
0
 public TestConsole(ConsoleSink sink)
 {
     _sink = sink;
     BackgroundColor = DefaultBackgroundColor;
     ForegroundColor = DefaultForegroundColor;
 }