The Test Helpers are a great way to ease your testing needs with MVC. If your using the Test Helpers to test your routing like so: "~/".ShouldMapTo
(x => x.Index());
When you run your tests you’ll get the following error:
System.Security.VerificationException : Method MvcContrib.TestHelper.RouteTestingExtensions.ShouldMapTo:
type argument 'Your Controller Name’ violates the constraint of type parameter 'TController'.
The fix is a binding
Add an app.config to your test project and paste in the following: