From 25bbfa7165dcffccbe1969a1635a2ec8e95a6a8f Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Wed, 11 Jun 2014 12:14:37 -0700 Subject: [PATCH] Fix test now that ServiceProvider throws a generic exception aspnet/DependencyInjection#87 --- test/Microsoft.AspNet.TestHost.Tests/TestServerTests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/Microsoft.AspNet.TestHost.Tests/TestServerTests.cs b/test/Microsoft.AspNet.TestHost.Tests/TestServerTests.cs index c1b0ea1fb3..b486dd3ffb 100644 --- a/test/Microsoft.AspNet.TestHost.Tests/TestServerTests.cs +++ b/test/Microsoft.AspNet.TestHost.Tests/TestServerTests.cs @@ -66,9 +66,7 @@ namespace Microsoft.AspNet.TestHost.Tests .BuildServiceProvider(); // Act & Assert - Assert.Throws( - "serviceProvider", - () => TestServer.Create(services, new Startup().Configuration)); + Assert.Throws(() => TestServer.Create(services, new Startup().Configuration)); } public class Startup