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
messagestringThe custom message
innerExceptionExceptionThe optional exception thrown by the inspector