Fix test now that ServiceProvider throws a generic exception
aspnet/DependencyInjection#87
This commit is contained in:
parent
45dcd20268
commit
25bbfa7165
|
|
@ -66,9 +66,7 @@ namespace Microsoft.AspNet.TestHost.Tests
|
||||||
.BuildServiceProvider();
|
.BuildServiceProvider();
|
||||||
|
|
||||||
// Act & Assert
|
// Act & Assert
|
||||||
Assert.Throws<ArgumentException>(
|
Assert.Throws<Exception>(() => TestServer.Create(services, new Startup().Configuration));
|
||||||
"serviceProvider",
|
|
||||||
() => TestServer.Create(services, new Startup().Configuration));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Startup
|
public class Startup
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue