Exemplo n.º 1
0
 public static LogWriter CreateTestContextLogWriter(TestContext testContext, LogDetailsType logType, LogDetailsContentType contentType)
 {
     return new TestContextLogWriter(testContext, logType, contentType);
 }
Exemplo n.º 2
0
 public static LogWriter CreateTextWriterLogWriter(TextWriter textWriter, LogDetailsType logType, LogDetailsContentType contentType)
 {
     return new TextWriterLogWriter(textWriter, logType, contentType);
 }
Exemplo n.º 3
0
 public static LogWriter CreateConsoleLogWriter(LogDetailsType logType, LogDetailsContentType contentType)
 {
     return new ConsoleLogWriter(logType, contentType);
 }
Exemplo n.º 4
0
 public static LogWriter CreateStringBuilderLogWriter(StringBuilder stringBuilder, LogDetailsType logType, LogDetailsContentType contentType)
 {
     return new StringBuilderLogWriter(stringBuilder, logType, contentType);
 }
Exemplo n.º 5
0
 protected LogWriter(LogDetailsType logType, LogDetailsContentType contentType)
 {
     this.logType = logType;
     this.contentType = contentType;
 }
Exemplo n.º 6
0
            public TextWriterLogWriter(TextWriter textWriter, LogDetailsType logType, LogDetailsContentType contentType)
                : base(logType, contentType)
            {
                Debug.Assert(textWriter != null, "textWriter != null");

                this.textWriter = textWriter;
            }
Exemplo n.º 7
0
            public TestContextLogWriter(TestContext testContext, LogDetailsType logType, LogDetailsContentType contentType)
                : base(logType, contentType)
            {
                Debug.Assert(testContext != null, "testContext != null");

                this.testContext = testContext;
                this.lineBuilder = new StringBuilder();
            }
Exemplo n.º 8
0
            public StringBuilderLogWriter(StringBuilder stringBuilder, LogDetailsType logType, LogDetailsContentType contentType)
                : base(logType, contentType)
            {
                Debug.Assert(stringBuilder != null, "stringBuilder != null");

                this.stringBuilder = stringBuilder;
            }
Exemplo n.º 9
0
 public ConsoleLogWriter(LogDetailsType logType, LogDetailsContentType contentType)
     : base(logType, contentType)
 {
 }