Table of Contents

Method ForResult

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

ForResult(bool, object?, object?, Exception?, AssertEqualityResult?)

Creates an instance of AssertEqualityResult.

public static AssertEqualityResult ForResult(bool equal, object? x, object? y, Exception? exception = null, AssertEqualityResult? innerResult = null)

Parameters

equal bool

A flag which indicates whether the values were equal

x object

The left-hand value in the comparison

y object

The right-hand value in the comparison

exception Exception

The optional exception that was thrown to cause the failure

innerResult

The optional inner result that caused the equality failure

Returns