This repository was archived by the owner on Nov 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
test/Microsoft.AspNet.StaticFiles.Tests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class DirectoryBrowserMiddlewareTests
19
19
[ Fact ]
20
20
public async Task NullArguments ( )
21
21
{
22
- Assert . Throws < TargetInvocationException > ( ( ) => TestServer . Create ( app => app . UseDirectoryBrowser ( new DirectoryBrowserOptions ( ) { Formatter = null } ) ) ) ;
22
+ Assert . Throws < ArgumentException > ( ( ) => TestServer . Create ( app => app . UseDirectoryBrowser ( new DirectoryBrowserOptions ( ) { Formatter = null } ) ) ) ;
23
23
24
24
// No exception, default provided
25
25
TestServer . Create ( app => app . UseDirectoryBrowser ( new DirectoryBrowserOptions ( ) { FileSystem = null } ) ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class StaticFileMiddlewareTests
19
19
[ Fact ]
20
20
public async Task NullArguments ( )
21
21
{
22
- Assert . Throws < TargetInvocationException > ( ( ) => TestServer . Create ( app => app . UseStaticFiles ( new StaticFileOptions ( ) { ContentTypeProvider = null } ) ) ) ;
22
+ Assert . Throws < ArgumentException > ( ( ) => TestServer . Create ( app => app . UseStaticFiles ( new StaticFileOptions ( ) { ContentTypeProvider = null } ) ) ) ;
23
23
24
24
// No exception, default provided
25
25
TestServer . Create ( app => app . UseStaticFiles ( new StaticFileOptions ( ) { FileSystem = null } ) ) ;
You can’t perform that action at this time.
0 commit comments