Table of Contents

Class MultipleException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

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

IReadOnlyCollection<Exception>

StackTrace

public override string? StackTrace { get; }

Property Value

string

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

innerExceptions IReadOnlyCollection<Exception>

The inner exceptions

Returns

MultipleException