Class MultipleException
Exception thrown when Assert.Multiple fails w/ multiple errors (when a single error occurs, it is thrown directly).
public class MultipleException : XunitException, ISerializable, IAssertionException
- Inheritance
-
MultipleException
- Implements
- Inherited Members
Properties
InnerExceptions
Gets the list of inner exceptions that were thrown.
public IReadOnlyCollection<Exception> InnerExceptions { get; }
Property Value
StackTrace
public override string? StackTrace { get; }
Property Value
Methods
ForFailures(IReadOnlyCollection<Exception>)
Creates a new instance of the MultipleException class to be thrown when Assert.Multiple caught 2 or more exceptions.
public static MultipleException ForFailures(IReadOnlyCollection<Exception> innerExceptions)
Parameters
innerExceptionsIReadOnlyCollection<Exception>The inner exceptions