Method RecordExceptionAsync
- Namespace
- Xunit
- Assembly
- xunit.v3.assert.dll
RecordExceptionAsync(Func<Task>)
Records any exception which is thrown by the given task.
protected static Task<Exception?> RecordExceptionAsync(Func<Task> testCode)
Parameters
Returns
Remarks
If the thrown exception is determined to be a "skip exception", it's not recorded, but instead is allowed to escape this function uncaught.