Table of Contents

Method ForInspectorFailure

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

ForInspectorFailure(string, Exception?)

Creates a new instance of the ThrowsAnyException class to be thrown when an inspector rejected the exception.

public static Exception ForInspectorFailure(string message, Exception? innerException = null)

Parameters

message string

The custom message

innerException Exception

The optional exception thrown by the inspector

Returns

Exception