Table of Contents

Method ForFailure

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

ForFailure(string?)

Creates a new instance of the FailException class to be thrown when the user calls Fail(string?).

public static FailException ForFailure(string? message)

Parameters

message string

The user's failure message.

Returns