安装NUnit包到项目,安装NUnit3TestAdapter到项目,从Nuget安装,结果如下:

从VS的“Live Unit Testing”视图中启动测试,如下图:

VS的Live Unit Testing功能是这样的,如果你把它启动后,你只要在代码中写一个测试,比如添加两个方法如下:

此时VS的Live Unit Testing会立即执行这2个方法。
安装NUnit包到项目,安装NUnit3TestAdapter到项目,从Nuget安装,结果如下:
从VS的“Live Unit Testing”视图中启动测试,如下图:
VS的Live Unit Testing功能是这样的,如果你把它启动后,你只要在代码中写一个测试,比如添加两个方法如下:
本文标题:在VS中使用NUnit
本文链接:https://www.haomeiwen.com/subject/wzizvctx.html
网友评论