Namespace AutoFixture

Namespaces

AutoFixture.DataAnnotations

AutoFixture.Dsl

AutoFixture.Kernel

Classes

AutoPropertiesTarget

A marker class, used to explicitly identify the target for Auto-properties in an ISpecimenBuilderNode graph.

BehaviorRoot

A marker class, used to explicitly identify the root of the behaviors role in an ISpecimenBuilderNode graph.

BooleanSwitch

Creates an alternating sequence of true and false.

ByteSequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

CharSequenceGenerator

Creates a sequence of printable ASCII characters (Dec 33-126), starting at '!' (Dec 33).

CollectionFiller

Contains extension methods for populating collections with specimens.

CompositeCustomization

Customizes an IFixture by using all contained Customizations.

ConstrainedStringGenerator

Creates a constrained string.

ConstructorCustomization

A customization that uses a particular constructor selection mechanism to pick and invoke a constructor to create specimens of the targeted type.

CurrentDateTimeCustomization

A customization that enables DateTime specimens to be based on the current Now value.

CurrentDateTimeGenerator

Creates new DateTime specimens based on the current Now value.

CustomizationExtensions

A set of useful helpers to simplify work with fixture customizations.

CustomizationNode

A marker class, used to explicitly identify the customizations role in an ISpecimenBuilderNode graph.

DecimalSequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

DefaultEngineParts

Supplies ISpecimenBuilder instances that can be used to implement the default engine of AutoFixture.

DefaultPrimitiveBuilders

Supplies ISpecimenBuilder instances that can resolve requests for many common primitives, such as String and Int32.

DefaultRelays

Supplies ISpecimenBuilder instances that works as AutoFixture's 'transmission'. Without those builders, very little is likely to work.

DictionaryFiller

Contains methods for populating dictionaries with specimens.

DisposableTrackingCustomization

Encapsulates a customization that adds tracking of disposable specimens to an IFixture.

DomainName

Represents a domain name.

DomainNameGenerator

Creates new DomainName instances.

DoubleSequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

ElementsBuilder<T>

Draws a random element from the given collection.

EmailAddressLocalPart

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.

EnumGenerator

Generates enum values in a round-robin fashion.

Fixture

Provides object creation services.

FixtureFreezer

Contains extension methods for freezing specimens in IFixture instances.

FixtureRegistrar

Contains extension methods for registering specimens in IFixture instances.

FixtureRepeater

Contains extension methods for repeating a function in IFixture instances.

FreezeOnMatchCustomization

A customization that freezes specimens of a specific Type and uses them to satisfy requests that match a set of criteria.

FreezingCustomization

A customization that will freeze a specimen of a given Type.

Generator<T>

Generates a perpetual sequence of items.

GuidGenerator

Creates new Guid instances.

IncrementingDateTimeCustomization

A customization that enables DateTime specimens to be based on an incrementing sequence of days starting from Now.

Int16SequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

Int32SequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

Int64SequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

InvariantCultureGenerator

Handles creation requests for CultureInfo instances, returning always the same InvariantCulture.

LambdaExpressionGenerator

Creates new lambda expressions represented by the Expression%601 type.

LazyRelay

Relays a request for an Func%601 to a request for a Lazy%601 and returns the result.

MailAddressGenerator

Creates new MailAddress instances.

MapCreateManyToEnumerable

Maps a call to ISpecimenBuilder) to a call for IEnumerable%601.

MultipleCustomization

A customization that enables conventions for well-known types that represents multiple items.

MutableValueTypeGenerator

Creates new struct.

NoAutoPropertiesCustomization

A customization that will turn off the auto population of properties on the target type.

NullRecursionBehavior

Decorates a ISpecimenBuilder with a RecursionGuard with NullRecursionHandler.

NumericSequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

NumericSequencePerTypeCustomization

A customization that enables numeric specimens to be unique within a specific numeric Type.

ObjectCreationException

The exception that is thrown when AutoFixture is unable to create an object.

OmitOnRecursionBehavior

Decorates an ISpecimenBuilder with a RecursionGuard.

RandomBooleanSequenceCustomization

A customization that changes how Boolean are generated. Uses RandomBooleanSequenceGenerator.

RandomBooleanSequenceGenerator

Creates random value true or false.

RandomCharSequenceGenerator

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.

RandomRangedNumberGenerator

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.

RangedNumberGenerator

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.

RegularExpressionGenerator

Creates a string that is guaranteed to match a RegularExpressionRequest.

RequestMemberTypeResolver

Resolver of the member type for the class member requests (e.g. PropertyInfo, FieldInfo).

ResidueCollectorNode

A marker class, used to explicitly identify the residue collector role in an ISpecimenBuilderNode graph.

SByteSequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

SingleSequenceGenerator

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.

SpecimenBuilderNodeEventArgs

Event arguments concerning an ISpecimenBuilderNode instance.

SpecimenCommand

Provides convenience methods to perform (partially) anonymous Commands.

SpecimenFactory

Creates anonymous variables from ISpecimenContext or ISpecimenBuilder instances.

SpecimenQuery

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.

StringGenerator

Creates string values based on a supplied factory.

StringSeedRelay

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.

TaskGenerator

Creates instances of Task and Task%601. The status will be set to RanToCompletion and Result will be resolved by a given ISpecimenContext.

ThrowingRecursionBehavior

Decorates a ISpecimenBuilder with a RecursionGuard with ThrowingRecursionHandler.

TracingBehavior

Decorates an ISpecimenBuilder with a TraceWriter to enable tracing for diagnosing how the decorated builder builds up specimens.

TypeGenerator

Generates Type instances.

UInt16SequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

UInt32SequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

UInt64SequenceGenerator

Creates a sequence of consecutive numbers, starting at 1.

UnwrapMemberRequest

If member request (e.g. PropertyInfo, FieldInfo, ParameterInfo) is passed, extracts the member type and uses the inner Builder to resolve request value.

UriGenerator

Creates new Uri instances.

UriScheme

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 ('-').

UriSchemeGenerator

Creates new UriScheme instances.

Utf8EncodingGenerator

Handles creation requests for Encoding instances, returning always the same UTF8.

Interfaces

ICustomization

Encapsulates a customization of an IFixture.

IFixture

Provides object creation services.

IParameterCustomizationSource

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.

IRequestMemberTypeResolver

Resolver of the member type for the class member requests (e.g. PropertyInfo, FieldInfo).