public void Logging_LinesLogTest() { IActionLinesLog log = new LinesLog(NullLogWriter.Instance); log.WriteAsync(MessageCategory.Error, "message1").Wait(); log.WriteLineAsync(MessageCategory.Error, " message2").Wait(); log.WriteFormatAsync(MessageCategory.Error, "message3 {0}\r\n", 1).Wait(); log.WriteLineAsync(MessageCategory.Error, "message4").Wait(); log.Content.Should().Be("message1 message2\r\nmessage3 1\r\nmessage4\r\n"); log.Lines.Should().Equal("message1 message2", "message3 1", "message4", string.Empty); }