public void debug_with_exception() { var sut = new BaseLoggerWrapper(GetType()); sut.Debug("Heloo", new ExternalException()); sut.Entries.Count.Should().Be(1); sut.Entries[0].Message.Should().Be("Heloo"); sut.Entries[0].LogLevel.Should().Be(LogLevel.Debug); sut.Entries[0].Exception.Should().BeOfType <ExternalException>(); }
public void debug_with_exception() { var sut = new BaseLoggerWrapper(GetType()); sut.Debug("Heloo", new ExternalException()); sut.Entries.Count.Should().Be(1); sut.Entries[0].Message.Should().Be("Heloo"); sut.Entries[0].LogLevel.Should().Be(LogLevel.Debug); sut.Entries[0].Exception.Should().BeOfType<ExternalException>(); }
public void debug_formatted() { var sut = new BaseLoggerWrapper(GetType()); sut.Debug("Heloo {0}", "World"); sut.Entries.Count.Should().Be(1); sut.Entries[0].Message.Should().Be("Heloo World"); sut.Entries[0].LogLevel.Should().Be(LogLevel.Debug); sut.Entries[0].Exception.Should().BeNull(); }