VS2010 单元测试“Pending"且无法完成测试 [英] VS2010 Unit test “Pending” and the test cannot be completed

查看:39
本文介绍了VS2010 单元测试“Pending"且无法完成测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 VS2010(Windows 7).

I'm using VS2010 (with windows 7).

每次我尝试运行单元测试时,它都处于待处理"状态,并且无法完成测试.

Every time I try to run a unit test it stays on "Pending" and the test cannot be completed.

我尝试遵循此msdn 说明.

我试过调试测试方法(测试视图/调试选择),设置断点,但是VS2010提示:当前不会命中断点...我在调试配置中.

I tried debugging test method (test view/debug selection), set breakpoints, but VS2010 indicates: the breakpoint will not currently be hit... I'm in debug configuration.

有什么建议吗?

推荐答案

如果您将 VS2010 和 VS2012 安装在同一台机器上,您需要为 VS2010 安装 SP1,否则单元测试有时将不起作用.(此处提供 SP1.)

If you have VS2010 and VS2012 installed on the same box you need to install SP1 for VS2010 or the unit tests sometimes won't work. (SP1 available here.)

这篇关于VS2010 单元测试“Pending"且无法完成测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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