如何在ASP.NET MVC Beta 1中我的单元测试路线? [英] How do I unit test routes in ASP.NET MVC Beta 1?

查看:98
本文介绍了如何在ASP.NET MVC Beta 1中我的单元测试路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现文章如何单元测试路线从<一个href="http://www.stephenwalther.com/blog/archive/2008/07/02/asp-net-mvc-tip-13-unit-test-your-custom-routes.aspx"相对=nofollow>斯蒂芬·瓦尔特并从<一个href="http://weblogs.asp.net/scottgu/archive/2007/12/03/asp-net-mvc-framework-part-2-url-routing.aspx"相对=nofollow>斯科特谷的在ASP.NET MVC以前的版本,但它不能在ASP.NET MVC的测试1.工作,如果我需要使用模拟框架,我倒是preFER使用犀牛制品的解决方案。

解决方案

MvcContrib >

I found articles on how to unit test routes from Stephen Walther and from Scott Gu in prior versions of ASP.NET MVC, but it doesn't work in ASP.NET MVC Beta 1. If I need to use a mocking framework, I'd prefer a solution that uses Rhino Mocks.

解决方案

Fluent route tester in MvcContrib

这篇关于如何在ASP.NET MVC Beta 1中我的单元测试路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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