Class StableFiniteSequenceCustomization

Namespace: AutoFixture
Assembly: AutoFixture.dll

A customization that makes sequences (i.e. IEnumerable%601 stable instead of dynamic.

[Obsolete("The StableFiniteSequenceRelay is now used by default, therefore this customization is no longer needed and will be removed in future versions of AutoFixture.")]
public class StableFiniteSequenceCustomization : ICustomization

Inheritance

objectStableFiniteSequenceCustomization

Implements

ICustomization

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Remarks

A sequence (i.e. an instance of `IEnumerable%601` is not guaranteed to be stable or finite; it might, in fact, represent a Generator that creates an Iterator that can go on for ever. Even if the sequence is finite, it may not be stable because it may yield new items every time it's iterated.

The StableFiniteSequenceCustomization class encapsulates a change in behavior that guarantees that an `IFixture` instance will resolve a request for a sequence into a stable sequence.

Constructors

StableFiniteSequenceCustomization()

public StableFiniteSequenceCustomization()

Methods

Customize(IFixture)

Adds a StableFiniteSequenceRelay to an IFixture.

public void Customize(IFixture fixture)

Parameters

fixture IFixture

The fixture to customize.

See Also

StableFiniteSequenceCustomization

See Also

StableFiniteSequenceRelay