public void LogDoesNotWriteNullFormattedMessage() { var state = Guid.NewGuid().ToString(); var sut = new IsEnabledWrapper(); sut.Log(LogLevel.Critical, default, state, null, (data, ex) => "[null]");
public void FormatMessageThrowsExceptionWithNullFormatter() { var state = Guid.NewGuid().ToString(); var sut = new IsEnabledWrapper(); Action action = () => sut.RunFormatMessage(state, null, null !); action.Should().Throw <ArgumentNullException>(); }