A.2. Test frameworks

Test frameworks are composed of two types of functionality:

  • Test runners execute the tests you write, give results, and allow you to know what went wrong where.
  • Test APIs include the attributes or classes you need to inherit and assertion APIs.

Let’s look at each in turn.

Visual Studio test runners:

  • MS test runner built into Visual Studio
  • TestDriven.NET
  • ReSharper
  • NUnit
  • DevExpress
  • Typemock Isolator
  • NCrunch
  • ContinuousTests (Mighty Moose)

Test and assertion APIs:

  • NUnit.Framework
  • Microsoft.VisualStudio.TestPlatform.UnitTestFramework
  • Microsoft.VisualStudio.TestTools.UnitTesting
  • FluentAssertions
  • Shouldly
  • SharpTestEx
  • AutoFixture

A.2.1. Mighty Moose (a.k.a. ContinuousTests) continuous runner

A previously commercial tool ...

Get The Art of Unit Testing, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.