Namespace AutoFixture
Namespaces
Classes
A marker class, used to explicitly identify the target for
Auto-properties in an ISpecimenBuilderNode graph.
A marker class, used to explicitly identify the root of the
behaviors role in an ISpecimenBuilderNode graph.
Creates an alternating sequence of true and false.
Creates a sequence of consecutive numbers, starting at 1.
Creates a sequence of printable ASCII characters (Dec 33-126), starting at '!' (Dec 33).
Contains extension methods for populating collections with specimens.
Customizes an IFixture by using all contained Customizations.
Creates a constrained string.
A customization that uses a particular constructor selection mechanism to pick and invoke a constructor to create specimens of the targeted type.
A customization that enables DateTime specimens to be based on the current Now value.
Creates new DateTime specimens based on the current Now value.
A set of useful helpers to simplify work with fixture customizations.
A marker class, used to explicitly identify the customizations
role in an ISpecimenBuilderNode graph.
Creates a sequence of consecutive numbers, starting at 1.
Supplies ISpecimenBuilder instances that can be used to implement the default
engine of AutoFixture.
Supplies ISpecimenBuilder instances that can resolve requests for many common
primitives, such as String and Int32.
Supplies ISpecimenBuilder instances that works as AutoFixture's
'transmission'. Without those builders, very little is likely to work.
Contains methods for populating dictionaries with specimens.
DisposableTrackingCustomization
Encapsulates a customization that adds tracking of disposable specimens to an
IFixture.
Represents a domain name.
Creates new DomainName instances.
Creates a sequence of consecutive numbers, starting at 1.
Draws a random element from the given collection.
Represents the local part of the email address, defined as everything up to, but not including, the @ sign.
Since EmailAddressLocalPart is used in constructing MailAddress, enforcement of rules on a valid email address
is performed by MailAddress and not EmailAddressLocalPart other than as noted.
EmailAddressLocalPartGenerator
Creates new EmailAddressLocalPart instances.
Generates enum values in a round-robin fashion.
Provides object creation services.
Contains extension methods for freezing specimens in IFixture instances.
Contains extension methods for registering specimens in IFixture instances.
Contains extension methods for repeating a function in IFixture instances.
A customization that freezes specimens of a specific Type
and uses them to satisfy requests that match a set of criteria.
A customization that will freeze a specimen of a given Type.
Generates a perpetual sequence of items.
Creates new Guid instances.
IncrementingDateTimeCustomization
A customization that enables DateTime specimens
to be based on an incrementing sequence of days starting from Now.
Creates a sequence of consecutive numbers, starting at 1.
Creates a sequence of consecutive numbers, starting at 1.
Creates a sequence of consecutive numbers, starting at 1.
Handles creation requests for CultureInfo instances,
returning always the same InvariantCulture.
Creates new lambda expressions represented by the Expression%601 type.
Relays a request for an Func%601 to a request for a
Lazy%601 and returns the result.
Creates new MailAddress instances.
Maps a call to
ISpecimenBuilder) to a
call for IEnumerable%601.
A customization that enables conventions for well-known types that represents multiple items.
Creates new struct.
A customization that will turn off the auto population of properties on the target type.
Decorates a ISpecimenBuilder with a RecursionGuard with NullRecursionHandler.
Creates a sequence of consecutive numbers, starting at 1.
NumericSequencePerTypeCustomization
A customization that enables numeric specimens to be unique within a specific numeric Type.
The exception that is thrown when AutoFixture is unable to create an object.
Decorates an ISpecimenBuilder with a
RecursionGuard.
RandomBooleanSequenceCustomization
A customization that changes how Boolean are generated. Uses RandomBooleanSequenceGenerator.
RandomBooleanSequenceGenerator
Creates random value true or false.
Creates a sequence of random printable ASCII characters (Dec 33-126).
RandomDateTimeSequenceGenerator
Creates random DateTime specimens.
RandomNumericSequenceCustomization
A customization that enables numeric specimens to be random and unique.
RandomNumericSequenceGenerator
Creates a sequence of random, unique, numbers starting at 1.
RandomRangedNumberCustomization
A customization that enables numeric specimens to be random and unique per equivalence set of type and range limits.
Creates a random sequence for a given type within a given range without repeating in the range until all values are exhausted. Once exhausted, will automatically reset the set and continue choosing randomly within the range. Multiple requests (whether the same or different object) for the same operand type, minimum, and maximum are treated as being drawn from the same set.
Creates a strictly increasing sequence of ranged numbers, starting at range minimum. Sequence restarts at range minimum when range maximum is exceeded.
ReadonlyCollectionPropertiesBehavior
Decorates ISpecimenBuilder with a Postprocessor which invokes
ReadonlyCollectionPropertiesCommand if the specimen meets the
ReadonlyCollectionPropertiesSpecification.
Creates a string that is guaranteed to match a RegularExpressionRequest.
Resolver of the member type for the class member requests (e.g. PropertyInfo, FieldInfo).
A marker class, used to explicitly identify the residue
collector role in an ISpecimenBuilderNode graph.
Creates a sequence of consecutive numbers, starting at 1.
Creates a sequence of consecutive numbers, starting at 1.
SingletonSpecimenBuilderNodeStackAdapterCollection
A collection of ISpecimenBuilderTransformation
instances, which can be used to produce a stack of singleton
ISpecimenBuilderNode instances at the root of any
ISpecimenBuilderNode graph.
SpecimenBuilderNodeAdapterCollection
Presents a horizontal slice of an ISpecimenBuilderNode
graph as if it was a collection.
Event arguments concerning an ISpecimenBuilderNode
instance.
Provides convenience methods to perform (partially) anonymous Commands.
Creates anonymous variables from ISpecimenContext or
ISpecimenBuilder instances.
Provides convenience methods to perform (partially) anonymous Queries.
StableFiniteSequenceCustomization
A customization that makes sequences (i.e. IEnumerable%601 stable instead of
dynamic.
StrictlyMonotonicallyIncreasingDateTimeGenerator
Creates new DateTime specimens based on a incremental sequence of days.
Creates string values based on a supplied factory.
Unwraps a request for a string SeededRequest to a request for a string and
prefixes the seed to the result.
SupportMutableValueTypesCustomization
A customization that changes how custom struct are generated. Uses MutableValueTypeGenerator.
Creates instances of Task and Task%601.
The status will be set to RanToCompletion and Result will be resolved by a given ISpecimenContext.
Decorates a ISpecimenBuilder with a RecursionGuard with ThrowingRecursionHandler.
Decorates an ISpecimenBuilder with a TraceWriter to enable
tracing for diagnosing how the decorated builder builds up specimens.
Generates Type instances.
Creates a sequence of consecutive numbers, starting at 1.
Creates a sequence of consecutive numbers, starting at 1.
Creates a sequence of consecutive numbers, starting at 1.
If member request (e.g. PropertyInfo, FieldInfo, ParameterInfo) is passed, extracts the member type
and uses the inner Builder to resolve request value.
Creates new Uri instances.
Represents a URI scheme name. Scheme names consist of a sequence of characters beginning with a letter and followed by any combination of letters, digits, plus ('+'), period ('.'), or hyphen ('-').
Creates new UriScheme instances.
Handles creation requests for Encoding instances,
returning always the same UTF8.
Interfaces
Encapsulates a customization of an IFixture.
Provides object creation services.
Source of the ICustomization instances specific for the particular
ParameterInfo parameter.
The main clients of this interface might be glue libraries which provide support for the parameter specific
customizations.
Resolver of the member type for the class member requests (e.g. PropertyInfo, FieldInfo).