Method SetForTestClass
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
SetForTestClass(ITestClass, TestEngineStatus, CancellationToken, FixtureMappingManager?)
Sets the test context for execution of a test class. This assumes an existing test context already exists from which it can pull the diagnostic and internal diagnostic message sinks.
public static void SetForTestClass(ITestClass testClass, TestEngineStatus testClassStatus, CancellationToken cancellationToken, FixtureMappingManager? fixtures = null)
Parameters
testClassThe test class that is being executed
testClassStatusThe test class status (valid values: Initializing, Running, and CleaningUp)
cancellationTokenCancellationTokenThe cancellation token used to cancel execution
fixturesThe fixtures that are available to the test class