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

TestCommand

public abstract class TestCommand
TestCommand is the abstract base class for all test commands in the framework. A TestCommand represents a single stage in the execution of a test, e.g.: SetUp/TearDown, checking for Timeout, verifying the returned result from a method, etc. TestCommands may decorate other test commands so that the execution of a lower-level command is nested within that of a higher level command. All nested commands are executed synchronously, as a single unit. Scheduling test execution on separate threads is handled at a higher level, using the task dispatcher.
public Test Test { get; }

Gets the test associated with this command.

public TestCommand(Test test)

Construct a TestCommand for a test.

public abstract TestResult Execute(TestExecutionContext context)

Runs the test in a specified context, returning a TestResult.