Class StableFiniteSequenceCustomization
A customization that makes sequences (i.e. System.Collections.Generic.IEnumerable<T> stable instead of dynamic.
Inheritance
System.Object
StableFiniteSequenceCustomization
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoFixture
Assembly: AutoFixture.dll
Syntax
[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
Remarks
A sequence (i.e. an instance of System.Collections.Generic.IEnumerable<T> 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.
Methods
| Improve this Doc View SourceCustomize(IFixture)
Adds a StableFiniteSequenceRelay to an IFixture.
Declaration
public void Customize(IFixture fixture)
Parameters
Type | Name | Description |
---|---|---|
IFixture | fixture | The fixture to customize. |