Repeat
RepeatAttribute is used on a test method to specify that it should be executed multiple times. If any repetition fails, the remaining ones are not run and a failure is reported.
Notes
- If RepeatAttribute is used on a parameterized method, each individual test case created for that method is repeated.
- It is not currently possible to use RepeatAttribute on a TestFixture or any higher level suite. Only test cases may be repeated.
Examples
[Test]
[Repeat(25)]
public void MyTest()
{
/* The contents of this test will be run 25 times. */
}