Table of Contents

Property TestClass

Namespace
Xunit
Assembly
xunit.v3.core.dll

TestClass

Gets the current test method, if the engine is currently in the process of running a test class; will return null outside of the context of a test class. Note that not all test framework implementations require that tests be based on classes, so this value may be null even if TestCase is not null.

ITestClass? TestClass { get; }

Property Value

Remarks

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