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