public void Logging_error_event_has_message_information() { var errorEvent = new ErrorEvent(new Error(ErrorCode.BrokerNotAvailable, "Nope"), true); _sut.LogErrorEvent(_eventId, errorEvent); var entry = _sut.LogEntries.Single(l => l.LogLevel == LogLevel.Error && l.EventId.Id == 1); Assert.Equal(ErrorCode.BrokerNotAvailable, entry.GetValue("Code")); Assert.Equal(true, entry.GetValue("IsFatal")); Assert.Equal("Nope", entry.GetValue("Reason")); }