Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 5243789

Browse files
committed
Handle DI changes in tests.
1 parent 781615a commit 5243789

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Microsoft.AspNet.StaticFiles.Tests/DirectoryBrowserMiddlewareTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class DirectoryBrowserMiddlewareTests
1919
[Fact]
2020
public async Task NullArguments()
2121
{
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 })));
2323

2424
// No exception, default provided
2525
TestServer.Create(app => app.UseDirectoryBrowser(new DirectoryBrowserOptions() { FileSystem = null }));

test/Microsoft.AspNet.StaticFiles.Tests/StaticFileMiddlewareTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class StaticFileMiddlewareTests
1919
[Fact]
2020
public async Task NullArguments()
2121
{
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 })));
2323

2424
// No exception, default provided
2525
TestServer.Create(app => app.UseStaticFiles(new StaticFileOptions() { FileSystem = null }));

0 commit comments

Comments
 (0)