public void Logging_kafka_exception_has_message_information() { var ex = new KafkaException(new Error(ErrorCode.BrokerNotAvailable, "Nope")); _sut.LogKafkaException(_eventId, ex); var entry = _sut.LogEntries.Single(l => l.LogLevel == LogLevel.Error && l.EventId.Id == 1); Assert.Equal(ErrorCode.BrokerNotAvailable, entry.GetValue("Code")); Assert.Equal("Nope", entry.GetValue("Reason")); }