File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
test/Microsoft.AspNet.Hosting.Tests Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,12 @@ public void CreateThrowsWithNoManifest()
84
84
fallbackServices . AddTransient < IFakeService , FakeService > ( ) ;
85
85
86
86
// Act
87
- var exp = Assert . Throws < InvalidOperationException > ( ( ) => HostingServices . Create ( fallbackServices . BuildServiceProvider ( ) ) ) ;
87
+ var exception = Assert . Throws < InvalidOperationException > ( ( ) => HostingServices . Create ( fallbackServices . BuildServiceProvider ( ) ) ) ;
88
88
89
89
90
90
// Assert
91
- Assert . True ( exp . Message . Contains ( "No service for type 'Microsoft.Framework.DependencyInjection.ServiceLookup.IServiceManifest'" ) ) ;
91
+ Assert . Equal ( $ "No service for type '{ typeof ( IServiceManifest ) . FullName } ' has been registered.",
92
+ exception . Message ) ;
92
93
}
93
94
94
95
private class ServiceManifest : IServiceManifest
You can’t perform that action at this time.
0 commit comments