Table of Contents

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

testClass

The test class that is being executed

testClassStatus

The test class status (valid values: Initializing, Running, and CleaningUp)

cancellationToken CancellationToken

The cancellation token used to cancel execution

fixtures

The fixtures that are available to the test class