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

NUnit.Framework.RetryAttribute

Specifies that a test method should be rerun on failure up to the specified maximum number of times.
namespace NUnit.Framework { public class RetryAttribute : NUnitAttribute, IRepeatTest, ICommandWrapper { public class RetryCommand : DelegatingTestCommand { public RetryCommand(TestCommand innerCommand, int tryCount); public RetryCommand(TestCommand innerCommand, int tryCount, Type[] retryExceptions); } public Type[] RetryExceptions { get; set; } public RetryAttribute(int tryCount); public TestCommand Wrap(TestCommand command); } }