Update the expected exception from DI
This commit is contained in:
parent
bf0c8c95b0
commit
d85580649f
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue