Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update the expected exception from DI
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Hurdugaci committed Dec 3, 2014
1 parent bf0c8c9 commit d855806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void CreateThrowsWithNoManifest()
fallbackServices.AddTransient<IFakeService, FakeService>();

// Act
var exp = Assert.Throws<Exception>(() => HostingServices.Create(fallbackServices.BuildServiceProvider()));
var exp = Assert.Throws<InvalidOperationException>(() => HostingServices.Create(fallbackServices.BuildServiceProvider()));


// Assert
Expand Down
2 changes: 1 addition & 1 deletion test/Microsoft.AspNet.TestHost.Tests/TestServerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void ThrowsIfNoApplicationEnvironmentIsRegisteredWithTheProvider()
var services = new ServiceCollection().BuildServiceProvider();

// Act & Assert
Assert.Throws<Exception>(() => TestServer.Create(services, new Startup().Configuration));
Assert.Throws<InvalidOperationException>(() => TestServer.Create(services, new Startup().Configuration));
}

[Fact]
Expand Down

0 comments on commit d855806

Please sign in to comment.