1 write to Exception
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
101Exception = exception,
24 references to Exception
InMemory.FunctionalTests (24)
Http2\Http2ConnectionTests.cs (4)
5087Assert.Single(LogMessages, m => m.Exception is ConnectionResetException); 5100Assert.DoesNotContain(LogMessages, m => m.Exception is ConnectionResetException); 5311Assert.Same(ioException, logMessage.Exception); 5330Assert.Same(exception, logMessage.Exception);
Http2\Http2StreamTests.cs (3)
1350Assert.Contains(LogMessages, m => m.Exception?.Message.Contains("Response Content-Length mismatch: too many bytes written (12 of 11).") ?? false); 1423Assert.Contains(LogMessages, m => m.Exception?.Message.Contains(CoreStrings.FormatTooFewBytesWritten(0, 11)) ?? false); 3111Assert.Contains(LogMessages, m => (m.Exception?.Message.Contains("App Faulted") ?? false) && m.LogLevel == LogLevel.Error);
Http2\Http2TestBase.cs (3)
1324var message = Assert.Single(LogMessages, m => m.Exception is TException); 1326Assert.Contains(expectedErrorMessage, expected => message.Exception.Message.Contains(expected)); 1346Assert.Contains(LogMessages, m => m.Exception?.Message.Contains(expectedErrorMessage) ?? false);
Http3\Http3TestBase.cs (4)
133Assert.Contains(LogMessages, m => m.Exception?.Message.Contains(expectedErrorMessage) ?? false); 141var message = Assert.Single(LogMessages, m => m.Exception != null && exceptionType.IsAssignableFrom(m.Exception.GetType())); 143Assert.Contains(expectedErrorMessage, expected => message.Exception.Message.Contains(expected));
ResponseTests.cs (10)
986logMessage.Exception.Message); 1024logMessage.Exception.Message); 1064logMessage.Exception.Message); 1099logMessage.Exception.Message); 2028Assert.Contains(LogMessages, w => w.EventId.Id == 17 && w.LogLevel <= LogLevel.Debug && w.Exception is BadHttpRequestException 2029&& ((BadHttpRequestException)w.Exception).StatusCode == StatusCodes.Status400BadRequest); 2082if (message.EventId.Id == 17 && message.LogLevel <= LogLevel.Debug && message.Exception is BadHttpRequestException 2083&& ((BadHttpRequestException)message.Exception).StatusCode == StatusCodes.Status400BadRequest) 2145Assert.Contains(LogMessages, w => w.EventId.Id == 17 && w.LogLevel <= LogLevel.Debug && w.Exception is BadHttpRequestException 2146&& ((BadHttpRequestException)w.Exception).StatusCode == StatusCodes.Status400BadRequest);