public void Uses_Exception_Message_For_GelfMessage_ShortMessage() { var gelfMessage = GelfMessage.EmptyGelfMessage; formatter.Format(gelfMessage, new Exception("Something bad happend")); Assert.That(gelfMessage.ShortMessage, Is.EqualTo("Something bad happend")); }
private void AppendExceptionInformationIfExists(GelfMessage gelfMessage, Exception exceptionObject) { if (exceptionObject != null) { ExceptionMessageFormatter.Format(gelfMessage, exceptionObject); } }