Table of Contents

Method SetForTestAssembly

Namespace
Xunit
Assembly
xunit.v3.core.dll

SetForTestAssembly(ITestAssembly, TestEngineStatus, CancellationToken)

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

public static void SetForTestAssembly(ITestAssembly testAssembly, TestEngineStatus testAssemblyStatus, CancellationToken cancellationToken)

Parameters

testAssembly

The test assembly that is being executed

testAssemblyStatus

The test assembly status

cancellationToken CancellationToken

The cancellation token used to cancel execution