You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/MyTested.AspNetCore.Mvc.DependencyInjection.Test/BuildersTests/ControllersTests/ControllerBuilderTests.cs
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ public void WithResolvedDependencyForShouldThrowExceptionWhenSameDependenciesAre
"Dependency AnotherInjectedService is already registered for MvcController controller.");
343
+
"Dependency AnotherInjectedService is already registered.");
344
344
}
345
345
346
346
[Fact]
@@ -359,7 +359,7 @@ public void WithResolvedDependencyForShouldThrowExceptionWhenNoConstructorExists
359
359
.ShouldReturn()
360
360
.Ok();
361
361
},
362
-
"NoParameterlessConstructorController could not be instantiated because it contains no constructor taking RequestModel, AnotherInjectedService, ResponseModel as parameters.");
362
+
"NoParameterlessConstructorController could not be instantiated because it contains no constructor taking RequestModel, ResponseModel, AnotherInjectedService as parameters.");
363
363
}
364
364
365
365
[Fact]
@@ -378,7 +378,7 @@ public void WithResolvedDependencyForShouldThrowExceptionWhenNoConstructorExists
378
378
.ShouldReturn()
379
379
.Ok();
380
380
},
381
-
"NoParameterlessConstructorController could not be instantiated because it contains no constructor taking RequestModel, AnotherInjectedService, ResponseModel as parameters.");
381
+
"NoParameterlessConstructorController could not be instantiated because it contains no constructor taking RequestModel, ResponseModel, AnotherInjectedService as parameters.");
382
382
}
383
383
384
384
[Fact]
@@ -458,7 +458,7 @@ public void WithServiceSetupForShouldThrowExceptionWithNoScopedService()
458
458
.Ok()
459
459
.WithModel("TestValue");
460
460
},
461
-
"The 'WithServiceSetupFor' method can be used only for services with scoped lifetime.");
461
+
"The 'WithSetupFor' method can be used only for services with scoped lifetime.");
Copy file name to clipboardExpand all lines: test/MyTested.AspNetCore.Mvc.Routing.Test/InternalTests/RoutingTests/MvcRouteResolverTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -311,7 +311,7 @@ public void ResolveShouldReturnProperErrorWhenTwoActionsAreMatched()
311
311
312
312
Assert.False(routeInfo.IsResolved);
313
313
Assert.Equal(
314
-
"exception was thrown when trying to select an action: 'Multiple actions matched. The following actions matched route data and had all constraints satisfied:\r\n\r\nMyTested.AspNetCore.Mvc.Test.Setups.Routing.NormalController.ActionWithOverloads (MyTested.AspNetCore.Mvc.Test)\r\nMyTested.AspNetCore.Mvc.Test.Setups.Routing.NormalController.ActionWithOverloads (MyTested.AspNetCore.Mvc.Test)'",
314
+
"exception was thrown when trying to select an action: 'Multiple actions matched. The following actions matched route data and had all constraints satisfied:\r\n\r\nMyTested.AspNetCore.Mvc.Test.Setups.Routing.NormalController.ActionWithOverloads (MyTested.AspNetCore.Mvc.Test.Setups)\r\nMyTested.AspNetCore.Mvc.Test.Setups.Routing.NormalController.ActionWithOverloads (MyTested.AspNetCore.Mvc.Test.Setups)'",
0 commit comments