Table of Contents

Property TestCollection

Namespace
Xunit
Assembly
xunit.v3.core.dll

TestCollection

Gets the current test collection, if the engine is currently in the process of running a test collection; will return null outside of the context of a test collection.

public ITestCollection? TestCollection { get; }

Property Value

Remarks

When running with the default test framework implementation, the value here is likely to implement IXunitTestCollection.