Method ExceptionAsync
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
ExceptionAsync(Func<Task>)
Records any exception which is thrown by the given task.
public static ValueTask<Exception?> ExceptionAsync(Func<Task> testCode)
Records any exception which is thrown by the given task.
public static ValueTask<Exception?> ExceptionAsync(Func<Task> testCode)