public void accept_entries_that_got_an_exception() { var sut = new ExceptionsOnly(); var entry = new LogEntry(LogLevel.Trace, "kkjlsdfkl", new Exception()); var actual = sut.IsSatisfiedBy(entry); actual.Should().BeTrue(); }
public void reject_entry_without_exception() { var sut = new ExceptionsOnly(); var entry = new LogEntry(LogLevel.Trace, "kkjlsdfkl", null); var actual = sut.IsSatisfiedBy(entry); actual.Should().BeFalse(); }