Visual Studio 2012右键单击“自动生成单元测试用例"绕行并不总是有效的... [英] Visual Studio 2012 Right Click Autogenerate Unit Test Case Circumvention doesn't always work...

查看:86
本文介绍了Visual Studio 2012右键单击“自动生成单元测试用例"绕行并不总是有效的...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

链接显示了对此问题的一种规避.

This link shows a circumvention to this problem.

尤其是:

我对此有好坏参半,有时可行,有时甚至不可行.  我现在有一个项目,它永远无法正常工作.映射后按Ctrl + U Ctrl + T 键盘快捷键,我看到以下消息:

I have mixed results with this, sometimes it works and sometimes it never works.   I have a project now where it never works.  When I press Ctrl+U Ctrl+T after mapping the keyboard shortcut I see this message:

组合键(Ctrl + U,Ctrl + T)绑定到当前不可用的命令(reate单元测试...)".

"The key combination (Ctrl+U, Ctrl+T) is bound to the command (reate Unit Tests...) which is not currently avaiable".

我的解决方案有一个带有CS文件的WPF项目,我正在尝试生成测试用例存根,它在解决方案中也有一个测试项目.为什么我会不断看到...当前不可用"?邮件的一部分. 我可以在上下文菜单中看到该命令,但该命令显示为灰色.

My solution has a WPF project with a CS file I am trying to generate Test Case Stubs, it also has a Test Project in the solution.   Why do I continually see the ... "which is not currently available" part of the message.  Also I can see the command in the context menu but it is grayed out.

  

   

JP Cowboy Coders Unite!

JP Cowboy Coders Unite!

推荐答案

Javaman II先生,

Hi Mr. Javaman II,

对不起,您遇到了这个问题.

I'm sorry you are running into this problem.

请在此线程上尝试解决方案:

Please try the solution on this thread:

http ://stackoverflow.com/questions/4327844/vs-2008-intellisense-missing-the-key-combination-is-bound-to-command-which-is-n

和这个:

http://social.msdn. microsoft.com/Forums/zh-CN/vsx/thread/712a9f58-74fc-4584-abeb-6c6ba82b2cb9/

似乎这首先不是VS损坏的问题.

Seems this is not a VS corrupt issue first.

此致


这篇关于Visual Studio 2012右键单击“自动生成单元测试用例"绕行并不总是有效的...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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