Table of Contents

Method ForMismatchedValues

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

ForMismatchedValues(object?, object?, string?)

Creates a new instance of EqualException to be thrown when two values are not equal. This may be simple values (like intrinsics) or complex values (like classes or structs).

public static EqualException ForMismatchedValues(object? expected, object? actual, string? banner = null)

Parameters

expected object

The expected value

actual object

The actual value

banner string

The banner to show; if null, then the standard banner of "Values differ" will be used

Returns