Namespace AutoFixture.Kernel
Classes
A specification that evaluates whether a request is a request for an abstract type such as an abstract base class or an interface.
Adapts an action delegate to ISpecimenCommand.
A query which is used to compose multiple IPropertyQuerys, returning only those properties
that are returned by all queries.
A boolean 'And' Composite IRequestSpecification.
A specification that evaluates whether a request is a request for a type.
Selects public constructors ordered so that any constructor with array arguments are selected before any other public constructor.
Relays a request for an array to a MultipleRequest and converts the result
to the desired array type.
Satisfies a request for IAsyncEnumerable%601 by wrapping a IEnumerable%601
with an implementation of IAsyncEnumerable%601.
Relays a request for an IAsyncEnumerator%601 to
an IAsyncEnumerable%601 and converts the result
to an enumerator of a sequence of the requested type.
A command that assigns anonymous values to all writable properties and fields of a type.
Encapsulates a command that binds a property or a field to a value.
An implementation of IMethodQuery that composes other IMethodQuery instances.
Creates specimens by returning the first specimen created by its children.
Aggregates a set of ISpecimenCommand.
Executing the aggregate will trigger the execution of the parts.
Encapsulates a maximum length for a string.
Encapsulates a constructor as a method.
Serves as a criterion against which a value can be compared. When a given value equals the criterion, it can be said to match the criterion; otherwise not.
Creates new Delegate instances.
A specification that evaluates specimen request to see if it's for the delegate type.
A specification that determines whether the request is a request
for a Type that directly inherits from the specified Type.
Tracks all disposable specimens created by a decorated ISpecimenBuilder to
be able to dispose them when signalled.
Decorates ISpecimenBuilder instances with DisposableTracker
instances.
EnumerableFavoringConstructorQuery
Selects public constructors ordered so that any constructor with arguments matching
IEnumerable%601 are selected before any other public constructor.
Relays a request for IEnumerable%601 to a MultipleRequest and
converts the result to a sequence of the requested type.
Relays a request for IEnumerator%601 to
IEnumerable%601 and converts the result to an enumerator
of a sequence of the requested type.
Evaluates whether a request is equal to an expected target.
A specification that evaluates requests for types against a target type. Also matches generic type requests agains the specified open generic.
Selects public factory methods ordered by the modest first.
A IRequestSpecification that is always false.
Relays a request for a field to a SeededRequest with a seed based
on the field's name.
A specification that determines whether the request is a request
for a FieldInfo matching the specified name and Type.
Represents a criterion for comparing a candidate field against a desired type and name.
Decorates an ISpecimenBuilder and filters requests so that only some requests
are passed through to the decorated builder.
Unwraps a request for many instances and returns the results as a true dynamic sequence.
Signals that many similar instances are requested.
A ISpecimenBuilder that always returns the same specimen.
GenericCollectionPropertyQuery
A query which returns generic collection properties from specified types.
Encapsulates a generic method, inferring the type parameters bases on invocation arguments.
Selects public constructors ordered by the most greedy constructor first.
Indicates that an illegal request was detected.
ImplementedInterfaceSpecification
A specification that determines whether the request is a request
for a Type that implements the specified interface Type.
Encapsulates an instance method. This is essentially an Adapter over
MethodInfo.
Selects a method from an instance.
Guards against requests for IntPtr by throwing an exception.
Decorates an IRequestSpecification and returns the opposite result.
Selects public constructors ordered so that any constructor with arguments matching
IList%601 are selected before any other public constructor.
Provides custom equality comparison for MemberInfo instances.
Creates a new instance of the requested type by invoking the first method it can satisfy.
MissingParametersSupplyingMethod
Decorates another method invoking it supplying missing parameters.
MissingParametersSupplyingMethodFactory
Creates a new MissingParametersSupplyingMethod for an
instance MethodInfo.
MissingParametersSupplyingStaticMethodFactory
Creates a new MissingParametersSupplyingMethod for a static
MethodInfo.
Selects public constructors ordered by the most modest constructor first.
Relays a request for a multidimensional array to a jagged array and converts the result to the desired multidimensional array type.
Relays requests for multiple (an unspecified count) specimens to a request for a specific number of specimens.
Represents a request for many (an unspecified number) of specimens.
MutableValueTypeWarningThrower
Throws an ObjectCreationException when one tries to create Structure without explicit parametrized constructor.
Possibly notifying about bad design (mutable value type).
A specification that evaluates whether a request is a request for a type without public constructors.
Signifies that it's not a specimen.
Prevents a decorated ISpecimenBuilder from returning a
NoSpecimen instance.
Breaks a recursion by returning null.
NullableEnumRequestSpecification
A specification that evaluates whether a request is a request for a nullable enum.
OmitArrayParameterRequestRelay
Relays requests for array parameters, and returns an empty array if the
object returned from the context is an OmitSpecimen
instance.
OmitEnumerableParameterRequestRelay
Relays requests for enumerable parameters, and returns an empty array
if the object returned from the context is an OmitSpecimen instance.
A specification which omits the Fixture and IFixture types.
Breaks a recursion by instructing AutoFixture to ignore the current request.
A signal type used to indicate to the Auto-Property feature that a given request should be ignored, and no further processing performed.
Issues OmitSpecimen instances if its encapsulated
IRequestSpecification is satisfied.
A boolean 'Or' Composite IRequestSpecification.
Relays a request for a parameter to a SeededRequest with a seed based
on the parameter's name.
A specification that determines whether the request is a request
for a ParameterInfo matching the specified name and Type.
Represents a criterion for comparing a candidate parameter against a desired type and name.
Performs post-processing on a created specimen.
Relays a request for a property to a SeededRequest with a seed based
on the property's name.
A specification that determines whether the request is a request
for a PropertyInfo matching a particular property,
according to the supplied comparison rules.
Represents a criterion for comparing a candidate property against a desired type and name.
Encapsulates a range for values of a given type.
Relay the RangedSequenceRelay to the request for the sequence of the fixed length.
Request for the sequence of Request values.
Sequece size is constrained by the MinLength and MaxLength values.
ReadonlyCollectionPropertiesCommand
A command which invokes Add(%600) to fill all readonly properties in a specimen that
implement ICollection%601.
ReadonlyCollectionPropertiesSpecification
A specification that evaluates whether or not a request is for a type containing readonly properties that
implement ICollection%601.
A query which returns readonly properties from specified types.
Base class for recursion handling. Tracks requests and reacts when a recursion point in the specimen creation process is detected.
Encapsulates a pattern for a regular expression.
Event args about a request for a specimen.
Unwraps a request for a SeededRequest to a request for its
Request while ignoring the Seed.
A specification that evaluates seeded requests for types against a target type.
Creates a new specimen from a SeededRequest using a function.
Encapsulates a seed for a given type.
Contains extension methods for working with
ISpecimenBuilderNode instances.
Exposes convenience methods for producing well-known object graphs.
Default implementation of ISpecimenContext.
Event arguments about a created specimen.
SpecimenFactory<TInput1, TInput2, TInput3, T>
Creates a new specimen using a Func%604.
SpecimenFactory<TInput1, TInput2, TInput3, TInput4, T>
Creates a new specimen using a Func%605.
Creates a new specimen using a Func%601.
Creates a new specimen using a Func%602.
SpecimenFactory<TInput1, TInput2, T>
Creates a new specimen using a Func%603.
Unwraps a request for many instances and returns the results as a stable list.
Encapsulates a static method.
Selects public static methods that has the same parameters of another method, ignoring optional parameters and return type.
Throws an ObjectCreationException.
TerminatingWithPathSpecimenBuilder
Decorates an ISpecimenBuilder with a node which tracks specimen requests, and
when NoSpecimen is detected or creation fails with exception, throws an
ObjectCreationException, which includes a description of the request path.
Breaks a recursion by throwing a descriptive exception.
Trace writer that will write out a trace of object requests and created objects
in the ISpecimenBuilder pipeline.
Tracks any request and passes it on to the container. Tracks any returned object from the container and passes it on.
A IRequestSpecification that is always true.
TypeArgumentsCannotBeInferredException
The exception that is thrown when AutoFixture is unable to infer the type parameters of a generic method from its arguments.
Maps a request for one Type to a request for another Type.
A specification that evaluates whether a request is a request for a value type such as a structure.
Interfaces
Represents some kind of method that can be invoked with a known set of parameters.
Creates a new Method from a MethodInfo.
Defines a strategy for selecting methods (such as constructors or factory methods) from a type.
Defines a strategy for selecting properties from a type.
Handles a recursive request.
A Specification that evaluates requests.
Builds, or partakes in building, anonymous variables (specimens).
A node in a graph of ISpecimenBuilder instances.
ISpecimenBuilderTransformation
Transforms ISpecimenBuilder instance into ISpecimenBuilderNode.
Represents a command which can be applied to a specimen.
A context used to create anonymous variables (specimens).