Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Using MVCContrib 3 Test Helpers with ASP.Net MVC 4 (beta)

AddThis Social Bookmark Button
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 direct. Add an app.config to your test project and paste in the following:

Home : Blog List : Kevin LaBranche : Using MVCContrib 3 Test Helpers with ASP.Net MVC 4 (beta)