路线测试ASP.NET MVC4 [英] Route testing ASP.NET MVC4

查看:120
本文介绍了路线测试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生成单元测试

这篇关于路线测试ASP.NET MVC4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆