Namespace AutoFixture.NUnit4

Classes

AutoDataAttribute

This attribute uses AutoFixture to generate values for unit test parameters. This implementation is based on TestCaseAttribute of NUnit4.

CustomizeAttribute

Base class for customizing parameters in methods decorated with AutoDataAttribute.

FavorArraysAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should be created using a constructor with one or more array arguments, if applicable.

FavorEnumerablesAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should be created using a constructor with one or more IEnumerable%601 arguments, if applicable.

FavorListsAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should be created using a constructor with one or more IList%601 arguments, if applicable.

FixedNameTestMethodBuilder

Builder that generates TestMethod with fixed names. This might be needed by some test runners to correctly identify tests between the discovery and execution (e.g. Nunit test adaptor for Visual Studio, NCrunch).

FrozenAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should be frozen so that the same instance is returned every time the IFixture creates an instance of that type.

GreedyAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should be created using the most greedy constructor that can be satisfied by an IFixture.

InlineAutoDataAttribute

This attribute acts as a TestCaseAttribute but allow incomplete parameter values, which will be provided by AutoFixture.

ModestAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should be created using the most modest constructor that can be satisfied by an IFixture.

NoAutoPropertiesAttribute

An attribute that can be applied to parameters in an AutoDataAttribute-driven TestCase to indicate that the parameter value should not have properties auto populated when the IFixture creates an instance of that type.

VolatileNameTestMethodBuilder

Interfaces

ITestMethodBuilder

Utility used to create a TestMethod instance.

Enums

Matching

The criteria used to determine which requests will be satisfied by the frozen specimen created for a parameter decorated with the FrozenAttribute attribute.