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

NUnit.Framework.TimeoutAttribute

Applies a timeout in milliseconds to a test. When applied to a method, the test is cancelled if the timeout is exceeded. When applied to a class or assembly, the default timeout is set for all contained test methods.
namespace NUnit.Framework { } namespace NUnit.Framework { public class TimeoutAttribute : PropertyAttribute, IApplyToContext { public TimeoutAttribute(int timeout); } }