Overview

Third-party test frameworks and libraries that AutoFixture integrates with.

AutoFixture ships extension packages that connect to tools you already use in .NET test projects. Each guide below covers the third-party library, what AutoFixture adds, and how to install both sides.

Pick the test framework you use, then add a mocking library if your tests need substitutes for interfaces or abstract types.

Test frameworks

These libraries run your tests. AutoFixture extensions add data attributes so method parameters become anonymous specimens ([AutoData] / [InlineAutoData] on xUnit and NUnit; [AutoDataSource] / [AutoArguments] on TUnit).

Mocking libraries

These libraries create test doubles. AutoFixture extensions register them as residue collectors so interfaces and abstract dependencies resolve to mocks, fakes, or substitutes when AutoFixture builds object graphs.