更新时间:2021-10-31 21:44:10
此功能从VS切断。
http://blogs.msdn.com/b/visualstudioalm/archive/2012/03/08/what-s-new-in-visual-studio-11-beta-unit-testing.aspx
生成单元测试向导 - 在VS2010中,你可以右键点击一个 方法在code,我们将生成一个单元测试到测试 项目。该向导是非常紧密耦合到MS-测试和依赖 像私人存取功能,以完成其工作,因此它被切断。我们 正在探索替代方案在这里,但是没有什么好的解决办法 呢。
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.
修改的有一个变通:http://blogs.msdn.com/b/malaysia/archive/2013/02/20/right-click-create-unit-tests.aspx