Namespace AutoFixture.TUnit

Namespaces

AutoFixture.TUnit.Internal

Classes

AutoArgumentsAttribute

Provides a data source for a data theory, with the data coming from inline values combined with auto-generated data specimens generated by AutoFixture.

AutoArgumentsAttribute<T>

Generic form of AutoArgumentsAttribute that supplies a single strongly typed inline value, with remaining parameters filled by AutoFixture.

AutoClassDataSourceAttribute

Provides a data source for a data theory, with the data coming from a class that yields test cases in any shape supported by TUnit MethodDataSource (for example IEnumerable<object?[]>, IEnumerable<T>, or tuples), combined with auto-generated data specimens generated by AutoFixture.

AutoClassDataSourceAttribute<T>

Generic form of AutoClassDataSourceAttribute that takes the data provider type as a type argument instead of Type.

AutoDataSourceAttribute

Provides auto-generated data specimens generated by AutoFixture as a TUnit data source.

AutoMemberDataSourceAttribute

Provides a data source for a data theory, with the data coming from one of the following sources and combined with auto-generated data specimens generated by AutoFixture:

  1. A static property
  2. A static field
  3. A static method (with parameters) The member must return test data in any shape supported by TUnit MethodDataSource (for example IEnumerable<object?[]>, IEnumerable<T>, tuples, or a single value).

AutoMemberDataSourceAttribute<T>

Generic form of AutoMemberDataSourceAttribute that takes the member-declaring type as a type argument instead of Type.

BaseDataSourceAttribute

Base class for data sources that provide AutoFixture test data for TUnit data driven tests.

CompositeDataSourceAttribute

An implementation of DataAttribute that composes other DataAttribute instances.

CustomizeAttribute

Base class for customizing parameters in methods decorated with AutoDataSourceAttribute.

FavorArraysAttribute

An attribute that can be applied to parameters in an AutoDataSourceAttribute-driven Theory 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 AutoDataSourceAttribute-driven Theory 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 AutoDataSourceAttribute-driven Theory to indicate that the parameter value should be created using a constructor with one or more IList%601 arguments, if applicable.

FrozenAttribute

An attribute that can be applied to parameters in an AutoDataSourceAttribute-driven Theory 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 AutoDataSourceAttribute-driven Theory to indicate that the parameter value should be created using the most greedy constructor that can be satisfied by an IFixture.

ModestAttribute

An attribute that can be applied to parameters in an AutoDataSourceAttribute-driven Theory 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 AutoDataSourceAttribute-driven Theory to indicate that the parameter value should not have properties auto populated when the IFixture creates an instance of that type.

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.