Table of Contents

Class FailException

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

Exception thrown when Assert.Fail is called.

public class FailException : XunitException, ISerializable, IAssertionException
Inheritance
FailException
Implements
Inherited Members

Methods

ForFailure(string?)

Creates a new instance of the FailException class to be thrown when the user calls Assert.Fail.

public static FailException ForFailure(string? message)

Parameters

message string

The user's failure message.

Returns

FailException