Unit Testing Routes in Web.Config in ASP.NET MVC

I’ve spent the better part of my week working on testing routes in ASP.NET MVC. When the routes are in the Global.asax.cs file, it’s no big deal. Simply register the routes, and then assert as necessary against the RouteTable.Routes items. The tougher part comes when the routes are in the web.config (http://weblogs.asp.net/fredriknormen/archive/2008/03/11/asp-net-mvc-framework-2-define-routes-in-web-config.aspx) or in an […]