public void Logging_ExtensionTest_WarnB() { var logger = new TestLogger(); logger.LogWarn("message {0} {1}.", "a", "b"); logger.Last.EventId.Should().Be(0); logger.Last.Exception.Should().BeNull(); logger.Last.LogLevel.Should().Be(LogLevel.Warning); logger.Last.Message.ToString().Should().Be("message a b."); }
public void Logging_ExtensionTest_WarnE() { var logger = new TestLogger(); logger.LogWarn(33, new InvalidCastException(), "message {0} {1}.", "a", "b"); logger.Last.EventId.Should().Be(33); logger.Last.Exception.Should().BeOfType <InvalidCastException>(); logger.Last.LogLevel.Should().Be(LogLevel.Warning); logger.Last.Message.ToString().Should().Be("message a b."); }
public void Logging_ExtensionTest_WarnC() { var logger = new TestLogger(); logger.LogWarn(11, "message {0} {1}.", "a", "b"); logger.Last.EventId.Should().Be(11); logger.Last.Exception.Should().BeNull(); logger.Last.LogLevel.Should().Be(LogLevel.Warning); logger.Last.Message.ToString().Should().Be("message a b."); }
public void Logging_ExtensionTest_WarnE() { var logger = new TestLogger(); logger.LogWarn(33, new InvalidCastException(), "message {0} {1}.", "a", "b"); logger.Last.EventId.Should().Be(33); logger.Last.Exception.Should().BeOfType<InvalidCastException>(); logger.Last.LogLevel.Should().Be(LogLevel.Warning); logger.Last.Message.ToString().Should().Be("message a b."); }
public void Logging_ExtensionTest_WarnA() { var logger = new TestLogger(); logger.LogWarn("some message."); logger.Last.EventId.Should().Be(0); logger.Last.Exception.Should().BeNull(); logger.Last.LogLevel.Should().Be(LogLevel.Warning); logger.Last.Message.ToString().Should().Be("some message."); }