MSTest和NUnit相比有哪些优点/缺点?

时间:2009-07-04 15:42:41

标签: unit-testing nunit comparison mstest

自Microsoft创建MSTest以来,我一直在使用它进行单元测试。我从来没有真正使用过NUnit,我只是不喜欢在我的开发盒上安装另一个工具。到目前为止我只使用了MSTest的基本功能,并且满足了我的需求,而且我对NUnit一无所知。

有人可以列出使用MSTest和NUnit相互比较的一些缺点和优势吗?

3 个答案:

答案 0 :(得分:6)

这是一个很好的博客,列出了MSTest和NUnit之间的一些差异http://blogs.msdn.com/nnaderi/archive/2007/02/01/mstest-vs-nunit-frameworks.aspx

这里的链接比较了更多的单元测试框架http://www.codeplex.com/xunit/Wiki/View.aspx?title=Comparisons

欢呼声

答案 1 :(得分:4)

以下是对Nunit,Visual Studio的Mstest的最新评论: http://www.barebonescoder.com/2010/06/mstest-vs-nunit-with-visual-studio-2010-tdd/

答案 2 :(得分:1)

对于.net核心:

  

当时NUnit与.NET Core 2并不完全兼容

https://dev.to/hatsrumandcode/net-core-2-why-xunit-and-not-nunit-or-mstest--aei

xUnit中的一些新功能:

https://dev.to/franndotexe/mstest-v2---new-old-kid-on-the-block