Property TestCollection
- Namespace
- Xunit
- Assembly
- xunit.v3.core.aot.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.
[NotNullIfNotNull("TestClass")]
[NotNullIfNotNull("TestCase")]
ITestCollection? TestCollection { get; }
Property Value
Remarks
When running with the default test framework implementation, the value here is likely to implement ICodeGenTestCollection.