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

TimeoutAttribute

Used on a method, marks the test with a timeout value in milliseconds. The test will be run in a separate thread and is cancelled if the timeout is exceeded. Used on a class or assembly, sets the default timeout for all contained test methods.
public TimeoutAttribute(int timeout)

Construct a TimeoutAttribute given a time in milliseconds