MVC Route Unit Tester provides convenient, easy to use methods that let you unit test the route table in your ASP.NET MVC application, including Area routes. Unlike many libraries, this lets you test routes both ways -- both incoming and outgoing. You can specify an incoming request and make one of several assertions about the outcome; such that the request matches a given route, matches no routes, or that it is ignored by the routing system. You can also specify route data and assert that a given URL will be generated by your application. Works with any unit testing library you choose, such as MSTest, NUnit, xUnit, mbUnit, and others. See the Project site for usage details.

Install-Package MvcRouteUnitTester -Version
dotnet add package MvcRouteUnitTester --version
paket add MvcRouteUnitTester --version
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes Several new methods were added to allow direct assertions in test methods. the MatchesRoute method no longer returns true for partial matches. Support for Area routes was added.

    • Moq (>= 4.0.10827)

Version History

Version Downloads Last updated
0.9.2 64,125 4/27/2012
0.9.1 1,938 1/12/2012 (current) 413 12/8/2011
0.9.0 365 12/5/2011 311 12/1/2011 311 11/29/2011
0.8.5 351 11/28/2011
0.8.4 346 11/28/2011 303 11/26/2011 304 11/26/2011
0.8.2 349 11/25/2011
0.8.1 351 11/21/2011 308 11/20/2011