路线测试ASP.NET MVC4

问题描述:

我一直使用MvcRouteUnitTester( codePLEX 并的的NuGet )运行的自动单元测试的反对我的路线。什么是可以做的品味:

I've been using MvcRouteUnitTester (codeplex and nuget) to run automated unit tests against my routes. A taste of what it can do:

// assert incoming route
tester.WithIncomingRequest("/Foo").ShouldMatchRoute("Foo", "Index");
tester.WithIncomingRequest("/Foo/Index").ShouldMatchRoute("Foo", "Index");

// assert outgoing route
tester.WithRouteInfo("Foo", "Index").ShouldGenerateUrl("/Foo");

它非常好...当它工作。它不MVC4 好工作,很长一段时间没有更新。

It works very well... when it works. It doesn't work well with MVC4 and has not been updated for a long time.

有没有替代的工具,它的适用于最新的MVC 的,并积极支持?

Is there a substitute tool which works with the latest MVC, and is actively supported?

你检查出分叉版本MVC 4?

Have you checked out the forked version for MVC 4?

MVC路线/ URL生成单元测试