码迷,mamicode.com
首页 > Windows程序 > 详细

(C#) 创建单元测试(Unit Test).

时间:2014-12-16 18:56:19      阅读:234      评论:0      收藏:0      [点我收藏+]

标签:http   ar   io   os   sp   art   bs   as   tt   

在VS2012中的右键中没有发现"Create Unit Test" 选项,原来需要安装个补丁:

https://visualstudiogallery.msdn.microsoft.com/45208924-e7b0-45df-8cff-165b505a38d7?SRC=Home

 参考:

http://www.visualstudio.com/en-us/get-started/create-and-run-unit-tests-vs.aspx

补丁安装好后,就可以在程序中的Method上面右击并创建UnitTest

在VS2102的菜单中选择 Test -> Windows-> Test Explorer. 就可以运行单元测试了。

(C#) 创建单元测试(Unit Test).

标签:http   ar   io   os   sp   art   bs   as   tt   

原文地址:http://www.cnblogs.com/fdyang/p/4167761.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!