C#——单元测试

测试搭建请看:http://www.cnblogs.com/Look_Sun/p/4514732.html

右键不出现Generate Unit Test选项请参考:http://www.jb51.net/softjc/83751.html

常见BUG参考>>

有时候我们右键会弹出:

解决方案:

  1. The class must be public (看下类是否是public)
  2. At least one public method in the class(看下方法是否是public)
posted @ 2017-02-16 20:40  shuai7boy  阅读(163)  评论(0编辑  收藏  举报