Namespace AutoFixture
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.
CreateSeedExtensions
Creates anonymous variables from ISpecimenContext or ISpecimenBuilder instances using the passed seed instance.
CurrentDateTimeCustomization
A customization that enables DateTime specimens to be based on the current System.DateTime.Now value.
CurrentDateTimeGenerator
Creates new System.DateTime specimens based on the current System.DateTime.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 System.String and System.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 System.Net.Mail.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 System.Type and uses them to satisfy requests that match a set of criteria.
FreezeSeedExtensions
Contains extension methods for freezing specimens in IFixture instances with a specified seed.
FreezingCustomization
A customization that will freeze a specimen of a given System.Type.
Generator<T>
Generates a perpetual sequence of items.
GuidGenerator
Creates new System.Guid instances.
IncrementingDateTimeCustomization
A customization that enables System.DateTime specimens to be based on an incrementing sequence of days starting from System.DateTime.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 System.Globalization.CultureInfo instances, returning always the same System.Globalization.CultureInfo.InvariantCulture.
LambdaExpressionGenerator
Creates new lambda expressions represented by the System.Linq.Expressions.Expression<TDelegate> type.
LazyRelay
Relays a request for an System.Func<TResult> to a request for a System.Lazy`1 and returns the result.
MailAddressGenerator
Creates new System.Net.Mail.MailAddress instances.
MapCreateManyToEnumerable
Maps a call to CreateMany<T>(ISpecimenBuilder) to a call for System.Collections.Generic.IEnumerable<T>.
MultipleCustomization
A customization that enables conventions for well-known types that represents multiple items.
MutableValueTypeGenerator
Creates new langword_csharp_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 System.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 System.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 System.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. System.Collections.Generic.IEnumerable<T> stable instead of dynamic.
StrictlyMonotonicallyIncreasingDateTimeGenerator
Creates new System.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 langword_csharp_struct are generated. Uses MutableValueTypeGenerator.
TaskGenerator
Creates instances of System.Threading.Tasks.Task and System.Threading.Tasks.Task`1. The status will be set to System.Threading.Tasks.TaskStatus.RanToCompletion and System.Threading.Tasks.Task`1.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 System.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 System.Text.Encoding instances, returning always the same System.Text.Encoding.UTF8.
Interfaces
ICustomization
Encapsulates a customization of an IFixture.
IFixture
Provides object creation services.
IParameterCustomizationSource
Source of the ICustomization instances specific for the particular System.Reflection.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).