Method ForFailures
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForFailures(int, IReadOnlyList<Tuple<int, string, Exception>>)
Creates a new instance of the AllException class to be thrown when one or more items failed during All<T>(IEnumerable<T>, Action<T>) or All<T>(IEnumerable<T>, Action<T, int>), AllAsync<T>(IEnumerable<T>, Func<T, Task>), or AllAsync<T>(IEnumerable<T>, Func<T, int, Task>).
public static AllException ForFailures(int totalItems, IReadOnlyList<Tuple<int, string, Exception>> errors)
Parameters
totalItemsintThe total number of items in the collection
errorsIReadOnlyList<Tuple<int, string, Exception>>The list of failures (as index, value, and exception)