<PackageReference Include="NUnit" Version="4.5.0" />

RetryAttribute

Specifies that a test method should be rerun on failure up to the specified maximum number of times.

The test command for the RetryAttribute

public Type[] RetryExceptions { get; set; }

An array of exception types, that trigger a retry when thrown. These are in addition to the normal behavior of retrying only on an assertion failure.

public RetryAttribute(int tryCount)

Construct a RetryAttribute

public TestCommand Wrap(TestCommand command)

Wrap a command and return the result.