No RegisterRoutes method was found in the MvcApplication.MvcApplication class.

Jul 23, 2012 at 5:55 PM

Why Shall I need this method?

Jul 23, 2012 at 8:33 PM

The application throws this InvalidOperationException when you don't have any routes registered. The program can't very well test against routes if no routes exist, right?

Jan 16, 2013 at 9:25 AM

I had the same issue as my application setup calls route setup in a different way. Use the alternate constructor: RouteTester(RouteCollection routes) and fill the routes using whatever code you have that sets up the routing table.