Class BeforeTestCommand
BeforeTestCommand is a DelegatingTestCommand that performs some specific action before the inner command is run.
public abstract class BeforeTestCommand : DelegatingTestCommand
- Inheritance
-
BeforeTestCommand
- Derived
- Inherited Members
Constructors
BeforeTestCommand(TestCommand)
Construct a BeforeCommand
public BeforeTestCommand(TestCommand innerCommand)
Parameters
innerCommand
TestCommand
Fields
BeforeTest
Action to perform before the inner command.
protected Action<TestExecutionContext>? BeforeTest
Field Value
Methods
Execute(TestExecutionContext)
Execute the command
public override TestResult Execute(TestExecutionContext context)
Parameters
context
TestExecutionContext