<p>I am getting back into a bit more .NET after a few-years of not using it full-time and am wondering what the good unit testing packages are these days.</p>
<p>I'm familiar with NUnit (a few years ago) and have played briefly around with <a href="https://en.wikipedia.org/wiki/IronRuby" rel="nofollow noreferrer">IronRuby</a>, with the goal of getting something like <a href="https://en.wikipedia.org/wiki/RSpec" rel="nofollow noreferrer">RSpec</a> going, but I don't know much beyond that.</p>
<p>I realize I could google for this and call it a day, but I believe I'm likely to get a better and more informed response from asking a question here :-)</p>
<p>Suggestions?</p>

[{'answer_id': 1765, 'author': 'Brett Veenstra', 'author_id': 307, 'author_profile': 'https://Stackoverflow.com/users/307', 'pm_score': 1, 'selected': False, 'text': '<p>I like <a href="http://www.mbunit.com/" rel="nofollow noreferrer">MbUnit</a>, er, <a href="http://www.gallio.org/" rel="nofollow noreferrer">Gallio</a>.  Most importantly to me is having good tools support inside Visual Studio.  For that I use <a href="http://www.jetbrains.com/resharper/index.html" rel="nofollow noreferrer">Resharper</a>, which has an <a href="http://code.google.com/p/mbunit-resharper/" rel="nofollow noreferrer">MbUnit test runner</a>.  A lot of folks seem to like <a href="http://www.testdriven.net/overview.aspx" rel="nofollow noreferrer">TestDriven.NET</a> as their test runner as well.</p>\n'}, {'answer_id': 1820, 'author': 'Mike Minutillo', 'author_id': 358, 'author_profile': 'https://Stackoverflow.com/users/358', 'pm_score': 2, 'selected': False, 'text': '<p>I like <a href="http://www.testdriven.net/overview.aspx" rel="nofollow noreferrer">TestDriven.NET</a> (even though I use ReSharper) and I\'m pretty happy with <a href="http://www.codeplex.com/xunit" rel="nofollow noreferrer">XUnit.net</a>. It uses Facts instead of Tests which many people dislike but I like the difference in terminology. It\'s useful to think of a collection of automatically provable Facts about your software and see which ones you violate when you make a change.</p>\n\n<p>Be aware that <a href="http://blogs.msdn.com/buckh/archive/2007/03/27/orcas-unit-testing-to-be-available-in-visual-studio-professional.aspx" rel="nofollow noreferrer">Visual Studio 2008 Professional (and above) now comes with integrated Unit Testing</a> (it used to be available only with the Team System Editions) and may be suitable for your needs. </p>\n'}, {'answer_id': 1821, 'author': 'Brad Tutterow', 'author_id': 308, 'author_profile': 'https://Stackoverflow.com/users/308', 'pm_score': 7, 'selected': True, 'text': '<p>There are so many it\'s crazy. Crazy good, I guess.</p>\n<ul>\n<li>For the conservative types (me), <a href="http://www.nunit.org/" rel="nofollow noreferrer"><strong>NUnit</strong></a> is still available and still more than capable.</li>\n<li>For the Microsoft-types, <a href="http://msdn.microsoft.com/en-us/vstudio/default.aspx" rel="nofollow noreferrer"><strong>MSTest</strong></a> is adequate, but it is slow and clunky compared to NUnit. It also lacks code coverage without paying the big bucks for the pricey versions of Visual Studio.</li>\n<li>There\'s also <a href="http://www.mbunit.com/About.aspx" rel="nofollow noreferrer"><strong>MbUnit</strong></a>. It\'s like NUnit, but it has nifty features like RowTest (run the same test with different parameters) and Rollback (put the database back like you found it after a test).</li>\n<li>And finally, <a href="http://www.codeplex.com/xunit" rel="nofollow noreferrer"><strong>xUnit.net</strong></a> is the trendy option with some attitude.</li>\n<li>Oh, and <a href="http://testdriven.net/" rel="nofollow noreferrer"><strong>TestDriven.NET</strong></a> will give you IDE integration for both NUnit and MbUnit.</li>\n</ul>\n<p>I\'m sure they\'re all just fine. I\'d steer away from MSTest though, unless you just enjoy the convenience of having everything in one IDE out of the box.</p>\n<p><a href="http://www.hanselminutes.com/default.aspx?showID=130" rel="nofollow noreferrer">Scott Hanselman</a> has a podcast on this very topic.</p>\n'}, {'answer_id': 2831, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': 3, 'selected': False, 'text': '<p>xUnit.net looks like it provides a slightly different approach to NUnit, MbUnit, and <a href="https://en.wikipedia.org/wiki/Visual_Studio_Unit_Testing_Framework" rel="nofollow noreferrer">MSTest</a>, which is interesting.</p>\n<p>In my search for an RSpec-like solution (because I <em>love</em> the RSpec), I also came across <a href="http://nspec.tigris.org/" rel="nofollow noreferrer">NSpec</a>, which looks a bit wordy, but combined with the <a href="http://code.google.com/p/nspec-extensions/" rel="nofollow noreferrer">NSpec Extensions</a> addon to use C# 3 extension methods, it looks pretty nice.</p>\n'}, {'answer_id': 3603, 'author': 'Judah Gabriel Himango', 'author_id': 536, 'author_profile': 'https://Stackoverflow.com/users/536', 'pm_score': 3, 'selected': False, 'text': '<p>We use NUnit and <a href="http://mbunit.com" rel="nofollow noreferrer">MbUnit</a> here. We use <a href="http://testdriven.net" rel="nofollow noreferrer">TestDriven.NET</a> to run the unit tests from within Visual\xa0Studio. We use the excellent, highly recommended <a href="http://www.ayende.com/projects/rhino-mocks/downloads.aspx" rel="nofollow noreferrer">RhinoMocks</a> as a mock framework.</p>\n'}, {'answer_id': 3979, 'author': 'Lance Fisher', 'author_id': 571, 'author_profile': 'https://Stackoverflow.com/users/571', 'pm_score': 2, 'selected': False, 'text': '<p>I used to use NUnit, but I switched to <a href="https://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#.NET_programming_languages" rel="nofollow noreferrer">MbUnit</a> since it has more features.</p>\n<p>I love RowTest. It lets you parametrize your tests. NUnit does have a little bit better tool support though. I am using ReSharper to run MbUnit tests. I\'ve had problems with TestDriven.NET running my SetUp methods for MbUnit.</p>\n'}, {'answer_id': 11163, 'author': 'Dan Blair', 'author_id': 1327, 'author_profile': 'https://Stackoverflow.com/users/1327', 'pm_score': 2, 'selected': False, 'text': '<p>NUnit, MSTest, etc. all do pretty much the same thing. However, I find NMock indispensable.</p>\n<p>NMock or any mocking package is not unit testing, but it makes it so much easier to do unit testing that it might as well be.</p>\n'}, {'answer_id': 11170, 'author': 'Iain Holder', 'author_id': 1122, 'author_profile': 'https://Stackoverflow.com/users/1122', 'pm_score': 3, 'selected': False, 'text': "<p>Stick to NUnit.  Don't go anywhere near MSTest.</p>\n\n<p>NUnit + ReSharper is an absolute joy to work with.</p>\n"}, {'answer_id': 31648, 'author': 'Doug R', 'author_id': 3271, 'author_profile': 'https://Stackoverflow.com/users/3271', 'pm_score': 3, 'selected': False, 'text': "<p>I used to use NUnit, but now tend to use MbUnit, for two key features:\n1. The RowTest feature allows you to easily run the same test on different sets of parameters, which is important if you really want thorough coverage.\n2. The Rollback feature allows you to run tests against your database while rolling back changes after every test, keeping your database in exactly the same state every time. And it's as easy as adding the [Rollback] attribute.</p>\n\n<p>Another nice aspect of MbUnit is that its syntax is nearly identical to NUnit, so if you have a whole test bed already in place under NUnit, you can just switch out the references without the need to change any (very much?) code.</p>\n"}, {'answer_id': 204949, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>I use the following:</p>\n<p><a href="http://www.testdriven.net" rel="nofollow noreferrer">TestDriven.NET</a> - Unit testing add on for Visual Studio</p>\n<p><a href="http://www.typemock.com" rel="nofollow noreferrer">Typemock Isolator</a>- Mocking framework for .NET unit testing</p>\n<p><a href="http://www.nunit.org" rel="nofollow noreferrer">NUnit</a> - An open source unit testing framework that is in C#.</p>\n'}, {'answer_id': 1150818, 'author': 'Jeff Brown', 'author_id': 80818, 'author_profile': 'https://Stackoverflow.com/users/80818', 'pm_score': 2, 'selected': False, 'text': '<p>You might find it interesting that Gallio v3.1 now supports <a href="https://en.wikipedia.org/wiki/RSpec" rel="nofollow noreferrer">RSpec</a> via <a href="https://en.wikipedia.org/wiki/IronRuby" rel="nofollow noreferrer">IronRuby</a>.</p>\n'}]
['https://Stackoverflow.com/questions/1760', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/234/']