如何添加NUnit的为ASP.NET MVC测试框架选项的Visual Web Developer 2008防爆preSS? [英] How do I add NUnit as a test framework option for ASP.NET MVC to Visual Web Developer 2008 Express?

查看:194
本文介绍了如何添加NUnit的为ASP.NET MVC测试框架选项的Visual Web Developer 2008防爆preSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据的 Professional ASP.NET MVC 1.0 的第8页,如果你正在使用VS 2008标准版或Visual Web开发人员2008年防爆preSS,您将需要下载并安装NUnit的,MbUnit的或扩展的xUnit ASP.NET MVC的,以便[创建单元测试项目]对话框中显示。

According to Professional ASP.NET MVC 1.0, page 8, "If you are using VS 2008 Standard Edition or Visual Web Developer 2008 Express you will need to download and install the NUnit, MBUnit or XUnit extensions for ASP.NET MVC in order for [the Create Unit Test Project] dialog to be shown."

有没有这样的扩展可供下载NUnit的2.4.8?如果是的话我在哪里可以下载它从?

Is there such an extension available to download for NUnit 2.4.8? If so where can I download it from?

如果不是,我怎么设置?我看着 ASP.Net MVC和NUnit 问题和文章的How:在Visual Studio中添加自定义的MVC测试框架和<一个href=\"http://blogs.msdn.com/webdevtools/archive/2008/03/06/asp-net-mvc-test-framework-integration-demo.aspx\">ASP.NET MVC测试框架集成演练的。但他们都指运行 devenv的/设置这似乎并没有可用于Visual Web开发人员2008年防爆preSS。有没有人得到创建单元测试项目对话框,NUnit的和VWD前preSS工作吗?怎么会这样?

If not, how can I set it up? I looked at the ASP.Net MVC and nUnit question and the articles How to: Add a Custom MVC Test Framework in Visual Studio and ASP.NET MVC Test Framework Integration Walkthrough. But they all refer to running devenv /setup which doesn't seem to be available for Visual Web Developer 2008 Express. Has anyone gotten the Create Unit Test Project dialog working with NUnit and VWD Express? How so?

感谢

推荐答案

在2011年,现在最简单的方法是安装此的从Visual Studio画廊ASP.NET MVC NUnit的扩展。的好处是,这个扩展可以随着时间的推移进行更新,因此您将有最新的NUnit的MVC模板。

The easiest way now in 2011 is to install this ASP.NET MVC NUnit extension from the Visual Studio gallery. The nice part is that this extension can be updated over time so you will have the latest nunit mvc template.

这篇关于如何添加NUnit的为ASP.NET MVC测试框架选项的Visual Web Developer 2008防爆preSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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