Table of Contents

Method SetForTestCollection

Namespace
Xunit
Assembly
xunit.v3.core.dll

SetForTestCollection(ITestCollection, TestEngineStatus, CancellationToken)

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

public static void SetForTestCollection(ITestCollection testCollection, TestEngineStatus testCollectionStatus, CancellationToken cancellationToken)

Parameters

testCollection

The test collection that is being executed

testCollectionStatus

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

cancellationToken CancellationToken

The cancellation token used to cancel execution