Table of Contents

Method ForMemberValueMismatch

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

ForMemberValueMismatch(object?, object?, string, Exception?)

Creates a new instance of EquivalentException which shows a message that indicates that the fault comes from an individual value mismatch one of the members.

public static EquivalentException ForMemberValueMismatch(object? expected, object? actual, string memberName, Exception? innerException = null)

Parameters

expected object

The expected member value

actual object

The actual member value

memberName string

The name of the mismatched member (may be an empty string for a top-level object)

innerException Exception

The inner exception that was thrown during value comparison, typically during a call to CompareTo(object)

Returns