Skip to content
@AutoFixture

AutoFixture

Minimize the 'Arrange' phase of your unit tests.

AutoFixture

Write maintainable unit tests, faster.

AutoFixture makes it easier for developers to do Test-Driven Development by automating non-relevant Test Fixture Setup, allowing the Test Developer to focus on the essentials of each test case.

Integrations

AutoFixture offers a variety of utility packages and integrations with most of the major mocking libraries and testing frameworks.

Core packages

The core packages offer the full set of AutoFixture's features without requring any testing framework or third party integration.

Product Package Stable Preview Downloads
The core package AutoFixture NuGet NuGet NuGet
Assertion idioms AutoFixture.Idioms NuGet NuGet NuGet
Seed extensions AutoFixture.SeedExtensions NuGet NuGet NuGet

Mocking libraries

AutoFixture offers integations with most major .NET mocking libraries.
These integrations enable such features as configuring mocks, auto-injecting mocks, etc.

Product Package Stable Preview Downloads
Moq AutoFixture.AutoMoq NuGet NuGet NuGet
NSubstitute AutoFixture.AutoNSubstitute NuGet NuGet NuGet
FakeItEasy AutoFixture.AutoFakeItEasy NuGet NuGet NuGet
Rhino Mocks AutoFixture.AutoRhinoMocks NuGet NuGet NuGet

Testing frameworks

AutoFixture offers integrations with most major .NET testing frameworks.
These integrations enable auto-generation of test cases, combining auto-generated data with inline arguments, etc.

Product Package Stable Preview Downloads
xUnit v3 AutoFixture.Xunit3 NuGet NuGet NuGet
xUnit v2 AutoFixture.Xunit2 NuGet NuGet NuGet
xUnit v1 AutoFixture.Xunit NuGet NuGet NuGet
NUnit v4 AutoFixture.NUnit4 NuGet NuGet NuGet
NUnit v3 AutoFixture.NUnit3 NuGet NuGet NuGet
NUnit v2 AutoFixture.NUnit2 NuGet NuGet NuGet
Foq AutoFixture.AutoFoq NuGet NuGet NuGet

You can check the compatibility with your target framework version on the wiki or on the NuGet website.

.NET Foundation

This project is supported by the .NET Foundation.

Pinned Loading

  1. AutoFixture AutoFixture Public

    AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on …

    C# 3.4k 352

Repositories

Showing 10 of 10 repositories
  • .github Public
    AutoFixture/.github’s past year of commit activity
    0 MIT 0 0 1 Updated Apr 23, 2025
  • AutoFixture.AutoRhinoMocks Public

    AutoFixture.AutoRhinoMocks is a .NET library that integrates AutoFixture with Rhino Mocks, transforming it into an auto-mocking container.

    AutoFixture/AutoFixture.AutoRhinoMocks’s past year of commit activity
    C# 0 MIT 0 0 0 Updated Apr 23, 2025
  • AutoFixture Public

    AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

    AutoFixture/AutoFixture’s past year of commit activity
    C# 3,434 MIT 352 38 (1 issue needs help) 12 Updated Apr 17, 2025
  • AutoFixture.xUnit3 Public

    AutoFixture.xUnit3 is a .NET library that integrates AutoFixture with xUnit 3.x, allowing you to effortlessly generate test data for your unit tests.

    AutoFixture/AutoFixture.xUnit3’s past year of commit activity
    C# 0 MIT 0 0 0 Updated Apr 15, 2025
  • AutoFixture.NUnit4 Public

    AutoFixture.NUnit4 is a .NET library that integrates AutoFixture with NUnit 4.x, allowing you to effortlessly generate test data for your unit tests.

    AutoFixture/AutoFixture.NUnit4’s past year of commit activity
    C# 1 MIT 0 0 0 Updated Apr 15, 2025
  • AutoFixture.NUnit2 Public

    AutoFixture.NUnit2 is a .NET library that integrates AutoFixture with NUnit 2.x, allowing you to effortlessly generate test data for your unit tests.

    AutoFixture/AutoFixture.NUnit2’s past year of commit activity
    C# 0 MIT 0 1 0 Updated Apr 15, 2025
  • AutoFixture.xUnit Public

    AutoFixture.xUnit is a .NET library that integrates AutoFixture with xUnit 1.x, allowing you to effortlessly generate test data for your unit tests.

    AutoFixture/AutoFixture.xUnit’s past year of commit activity
    C# 0 MIT 0 0 0 Updated Apr 14, 2025
  • AutoFixture/AutoFixture.TUnit’s past year of commit activity
    C# 0 MIT 1 1 1 Updated Apr 6, 2025
  • AutoFixture.github.io Public

    Documentation site for the AutoFixture products

    AutoFixture/AutoFixture.github.io’s past year of commit activity
    Dockerfile 4 6 1 (1 issue needs help) 1 Updated Apr 13, 2024
  • SemanticComparison Public

    Compare objects that look semantically similar, even if they are of different types.

    AutoFixture/SemanticComparison’s past year of commit activity
    C# 38 MIT 3 3 1 Updated May 24, 2021

Top languages

Loading…

Most used topics

Loading…