public void IncludeExceptionDetailsInLoggedRow() { var exception = new NullReferenceException(); _logger.Log(LogLevel.Error, "exception message", (Exception)exception); var entity = GetLogEntities().Single(); Assert.NotNull(entity.Exception); Assert.Equal(exception.ToString().ExceptBlanks(), entity.Exception.ExceptBlanks()); }