public void include_property_in_the_exception_output() { var exception = new ExceptionWithProperty() { UserId = 10 }; var sut = new BaseLoggerWrapper(GetType()); var actual = sut.FormatException(exception); actual.Should().Be(" Griffin.Core.Tests.Logging.Loggers.ExceptionWithProperty: Exception of type 'Griffin.Core.Tests.Logging.Loggers.ExceptionWithProperty' was thrown.\r\n [UserId='10']\r\n"); }
public void include_property_in_the_exception_output() { var exception = new ExceptionWithProperty(){UserId = 10}; var sut = new BaseLoggerWrapper(GetType()); var actual = sut.FormatException(exception); actual.Should().Be(" Griffin.Core.Tests.Logging.Loggers.ExceptionWithProperty: Exception of type 'Griffin.Core.Tests.Logging.Loggers.ExceptionWithProperty' was thrown.\r\n [UserId='10']\r\n"); }