NUnit vs VisualStudio Unit Test Project? RRS feed


  • The following is from http://stackoverflow.com/questions/1554018/unit-test-nunit-or-visual-studio

    NUnit has few advantages over MS-Test

    1. Suite attribute - can aggregate tests and execute them separately (useful for large projects with fast and slow tests for example)
    2. Readable Assert method, e.g. Assert.AreEqual(expected, actual) vs Assert.That(actual, Is.EqualTo(expected))
    3. NUnit has frequent version updates - MS-Test has only one per VS version.
    4. Many integrated runners including Resharper and testDriven.NET
    5. Expected exception message assertion - can be done using attribute in NUnit but must be done using Try-Catch in MS-Test
    • Marked as answer by DavidThielen Monday, September 30, 2013 3:20 PM
    Monday, September 30, 2013 1:54 AM

All replies