Blogger :
ASP.NET Team Blogs
All posts :
All posts by ASP.NET Team Blogs
Category :
ASP.NET
Blogged date : 2008 Aug 03
In this tip, I demonstrate how you can create a special controller that you can use to test your custom routes. I also explain how you can give your routes back their names so you can more effectively unit test your routes. In this tip, I demonstrate how you can create a custom controller that you can use to debug the custom routes that you add to your ASP.NET MVC applications (see Figure 1). I also explain how you can create unit tests that test your custom routes by name. Figure 1 – Using the RouteDebugger Controller I was inspired to undertake this project by Phil Haack’s ASP.NET Routing Debugger: http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx However, there are some important differences between the Route Debugger...(
read more)