在Visual Studio 2008中进行调试时仅执行一个单元测试 [英] Execute only one unit test while debugging in Visual Studio 2008

查看:72
本文介绍了在Visual Studio 2008中进行调试时仅执行一个单元测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以在调试时选择要在Visual Studio 2008单元测试项目中执行的TestMethods?我想调试一个特定的测试,而不必在每个调试会话期间执行我的其他TestMethod.

Is there a way to select which TestMethods you want to execute in Visual Studio 2008 Unit Test project while debugging? I want to debug one particular test without having my other TestMethods execute during each debug session.

推荐答案

单击测试方法名称,然后按Ctrl + R,Ctrl + T. (或转到在当前上下文中进行测试/调试/测试.)

Click on a test method name, then press Ctrl+R, Ctrl+T. (Or go to Test / Debug / Tests in Current Context.)

这篇关于在Visual Studio 2008中进行调试时仅执行一个单元测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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