Where is the “Create Unit Tests” selection?

2019-01-08 05:23发布

I have installed the new Visual Studio 2012 Ultimate.

I have created a Test Project with my solution and it contains some default unit tests. However right clicking on new Methods doesn't show the "Create Unit Tests" context menu any longer.

See Visual Studio 2010 Ultimate: enter image description here

And Visual Studio 2012 Ultimate: enter image description here

Any idea why that could be?

UPDATE:

Solution for Visual Studio 2012 and 2013:

Microsoft has acknowledged it here and offers an official work around patch to fix it. Download, install and Enjoy!

8条回答
Viruses.
2楼-- · 2019-01-08 05:58

You may regain the right click "Create Unit Tests..." by importing the following vssettings from here.

查看更多
Explosion°爆炸
3楼-- · 2019-01-08 05:58

http://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx

Method 3 - Re-enable the Create Unit Tests... Context Menu.

This is by far the best method ever. To re-enable the Create Unit Tests... menu, go to Tools->Customize... to launch the Customize dialog. At the Customize dialog, go to the Commands tab, select the Context menu radio button and choose Editor Context Menus | Code Window.

查看更多
登录 后发表回答