@@ -113,7 +113,7 @@ public async Task InvokeAsync_TokenThrowsException_NoCaptures()
113113 . Verifiable ( Times . Never ) ;
114114
115115
116- var result = await Assert . ThrowsExceptionAsync < Exception > ( async ( ) => await
116+ var result = await Assert . ThrowsExactlyAsync < Exception > ( async ( ) => await
117117 new ExceptionHandlerMiddleware (
118118 httpContextRequestBodyReader . Object ,
119119 httpContextRequestCollector . Object ,
@@ -180,7 +180,7 @@ public async Task InvokeAsync_ReaderThrowsException_NoCaptures()
180180 . Verifiable ( Times . Never ) ;
181181
182182
183- var result = await Assert . ThrowsExceptionAsync < Exception > ( async ( ) => await
183+ var result = await Assert . ThrowsExactlyAsync < Exception > ( async ( ) => await
184184 new ExceptionHandlerMiddleware (
185185 httpContextRequestBodyReader . Object ,
186186 httpContextRequestCollector . Object ,
@@ -332,7 +332,7 @@ public async Task InvokeAsync_NextAndCollectThrowException_NoCaptures()
332332 . Verifiable ( Times . Never ) ;
333333
334334
335- var result = await Assert . ThrowsExceptionAsync < Exception > ( async ( ) => await
335+ var result = await Assert . ThrowsExactlyAsync < Exception > ( async ( ) => await
336336 new ExceptionHandlerMiddleware (
337337 httpContextRequestBodyReader . Object ,
338338 httpContextRequestCollector . Object ,
@@ -413,7 +413,7 @@ public async Task InvokeAsync_NextAndCaptureThrowException_NoCaptures()
413413 . Verifiable ( Times . Once ) ;
414414
415415
416- var result = await Assert . ThrowsExceptionAsync < Exception > ( async ( ) => await
416+ var result = await Assert . ThrowsExactlyAsync < Exception > ( async ( ) => await
417417 new ExceptionHandlerMiddleware (
418418 httpContextRequestBodyReader . Object ,
419419 httpContextRequestCollector . Object ,
0 commit comments