xUnit or NUnit? What advantages and disadvantages of each other?

C#Unit TestingTestingNunitXunit

C# Problem Overview


What are the pluses and minuses of each framework, comparing to each other? How well they work with ASP.NET MVC? How well they support mocking?

C# Solutions


Solution 1 - C#

I work with NUnit only. It is pretty good for me. It is integrated into different add-ons for Visual Studio like Resharper, it supports in TeamCity and it has stand-alone test launcher

And looks like NUnit become an industry standard for unit testing.

And we haven't had any major issues with Moq or Rhino.Mock.

As I remember Asp.Net MVC (I worked with 1.0 only) uses MS Unit. You may easily switch from MSUnit to NUnit.

A similar question was asked already, maybe you find some details here: https://stackoverflow.com/questions/261139/nunit-vs-mbunit-vs-mstest-vs-xunit-net

Solution 2 - C#

An old post, but thought this would be helpful to someone.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDmitryView Question on Stackoverflow
Solution 1 - C#VMykytView Answer on Stackoverflow
Solution 2 - C#Thilok GunawardenaView Answer on Stackoverflow