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.
AutoFixture offers a variety of utility packages and integrations with most of the major mocking libraries and testing frameworks.
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 | |||
Assertion idioms | AutoFixture.Idioms | |||
Seed extensions | AutoFixture.SeedExtensions |
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 | |||
NSubstitute | AutoFixture.AutoNSubstitute | |||
FakeItEasy | AutoFixture.AutoFakeItEasy | |||
Rhino Mocks | AutoFixture.AutoRhinoMocks |
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 | |||
xUnit v2 | AutoFixture.Xunit2 | |||
xUnit v1 | AutoFixture.Xunit | |||
NUnit v4 | AutoFixture.NUnit4 | |||
NUnit v3 | AutoFixture.NUnit3 | |||
NUnit v2 | AutoFixture.NUnit2 | |||
Foq | AutoFixture.AutoFoq |
You can check the compatibility with your target framework version on the wiki or on the NuGet website.
This project is supported by the .NET Foundation.