NUnit.Framework.Internal.Commands.CancelAfterRunner
Runs code with a cancellation token that is cancelled when a CancelAfterAttribute timeout expires.
Used for tests, the one-time setup and teardown of fixtures, and setup and teardown methods.
public static bool Run(TestExecutionContext context, int timeout, IDebugger debugger, FailureSite failureSite, Action action)
Runs action with a cancellation token that is cancelled when timeout expires,
or when the current token of context is cancelled.