Method InvokeTest
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
InvokeTest(TContext, object?)
Invokes the test method and returns the amount of time spent executing.
protected virtual ValueTask<TimeSpan> InvokeTest(TContext ctxt, object? testClassInstance)
Parameters
ctxtTContextThe context that describes the current test
testClassInstanceobjectThe instance of the test class (may be
nullwhen running a static test method)
Returns
Remarks
This method runs during Running and any exceptions thrown will contribute to test failure.