Table of Contents

Method SetForTestCase

Namespace
Xunit
Assembly
xunit.v3.core.dll

SetForTestCase(ITestCase, TestEngineStatus, CancellationToken)

Sets the test context for execution of a test case. This assumes an existing test context already exists from which it can pull the diagnostic and internal diagnostic message sinks.

public static void SetForTestCase(ITestCase testCase, TestEngineStatus testCaseStatus, CancellationToken cancellationToken)

Parameters

testCase

The test case that is being executed

testCaseStatus

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

cancellationToken CancellationToken

The cancellation token used to cancel execution