Update the expected exception from DI

This commit is contained in:
Victor Hurdugaci 2014-12-03 11:38:31 -08:00
parent bf0c8c95b0
commit d85580649f
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ namespace Microsoft.AspNet.Hosting.Tests
fallbackServices.AddTransient<IFakeService, FakeService>();
// Act
var exp = Assert.Throws<Exception>(() => HostingServices.Create(fallbackServices.BuildServiceProvider()));
var exp = Assert.Throws<InvalidOperationException>(() => HostingServices.Create(fallbackServices.BuildServiceProvider()));
// Assert

View File

@ -34,7 +34,7 @@ namespace Microsoft.AspNet.TestHost
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]