O'Reilly logo

The Art of Unit Testing, 2nd Edition by Roy Osherove

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required