Table of Contents

Class TrueException

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

Exception thrown when Assert.True fails.

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

Methods

ForNonTrueValue(string?, bool?)

Creates a new instance of the TrueException class to be thrown when a non-true value was provided.

public static TrueException ForNonTrueValue(string? message, bool? value)

Parameters

message string

The message to be displayed, or null for the default message

value bool?

The actual value

Returns

TrueException