Visual Studio 2008 中不提供测试?

发布于 2024-08-18 23:22:18 字数 253 浏览 1 评论 0原文

我正在学习 Nerddinner ASP.NET MVC 教程,并且在创建项目后立即进行部分操作,并尝试第一次运行我的单元测试。我看到测试项目以及生成的 AccountControllerTest.cs 和 HomeControllerTest.cs 文件,但是当我单击 Test ->运行所有选项均呈灰色。当我尝试使用键盘快捷键进行测试时,我收到一条消息,表明该组合键已绑定到当前不可用的命令 (RunTestsInCurrentContext)。我正在运行 VS 2008 开发版。

I'm working through the Nerd Dinner ASP.NET MVC tutorial and am at the part right after I've created the project and am trying to run my unit tests for the first time. I see the test project and the AccountControllerTest.cs and HomeControllerTest.cs files that were generated but when I click on Test -> Run all options are greyed out. When I try the keyboard shortcut for tests I get a message that that key combination is bound to command (RunTestsInCurrentContext) which is not currently available. I'm running VS 2008 Development Edition.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

蓝海 2024-08-25 23:22:18

不认为它们在 VS 2008 开发版中可用,您需要专业版

查看此链接上 pdf 中的“代码质量工具”部分 - Visual Studio 2008 产品比较指南

Dont think they are available in VS 2008 Development Edition, you need Professional Edition

Look at Code Quality Tools section in the pdf on this link - Visual Studio 2008 Product Comparison Guide

放我走吧 2024-08-25 23:22:18

你有 Express 版吗? IF 所以不支持测试

Do you have the Express Edition? IF so the tests are not supported

冷血 2024-08-25 23:22:18

我有标准版,不支持内置测试,所以我使用 Nunit。
http://nunit.com/index.php

I have the standard edition and built in tests are not supported so I use Nunit.
http://nunit.com/index.php

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文