Class RepeatAttribute
Used to annotate an Xunit [Theory]
test method to have the test executed
the specified number of times.
Namespace: Neon.Xunit
Assembly: Neon.Xunit.dll
Syntax
public class RepeatAttribute : DataAttribute
Constructors
RepeatAttribute(int)
Constructor.
Declaration
public RepeatAttribute(int count)
Parameters
Type | Name | Description |
---|---|---|
int | count | Specifies the number of times the theory should be executed. |
Methods
GetData(MethodInfo)
Returns the data to be passed to the test theory method an enumeration of data arrays, each holding the objects to be passed as a test call.
Declaration
public override IEnumerable<object[]> GetData(MethodInfo testMethod)
Parameters
Type | Name | Description |
---|---|---|
MethodInfo | testMethod | Specifies the target test method. |
Returns
Type | Description |
---|---|
IEnumerable<object[]> | The argument arrays. |