Where is the “Create Unit Tests” selection?

前端 未结 9 1360
情歌与酒
情歌与酒 2020-11-30 19:25

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 clickin

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 19:44

    This feature was cut from VS.

    http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/08/what-s-new-in-visual-studio-11-beta-unit-testing.aspx

    Generate Unit Test Wizard – In VS2010 you could right click on a method in your code and we would generate a unit test into your test project. This wizard was very tightly coupled to MS-Test and depended on features like Private Accessors to do its work, so it was cut. We are exploring alternatives here, but don’t have any good solutions yet.

    EDIT There is a work around: http://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx

提交回复
热议问题