Class FixtureRepeater
Contains extension methods for repeating a function in IFixture instances.
Inheritance
System.Object
FixtureRepeater
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
public static class FixtureRepeater
Methods
| Improve this Doc View SourceRepeat<T>(IFixture, Func<T>)
Repeats a function many times.
Declaration
public static IEnumerable<T> Repeat<T>(this IFixture fixture, Func<T> function)
Parameters
Type | Name | Description |
---|---|---|
IFixture | fixture | The IFixtureto use. |
System.Func<T> | function | A function that creates an instance of |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T> | A sequence of objects created by |
Type Parameters
Name | Description |
---|---|
T | The type of object that |
Remarks
The number of times function
is invoked is determined by
RepeatCount.