Table of Contents

Method ForMemberListMismatch

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

ForMemberListMismatch(IEnumerable<string>, IEnumerable<string>, string)

Creates a new instance of EquivalentException which shows a message that indicates that the list of available members does not match.

public static EquivalentException ForMemberListMismatch(IEnumerable<string> expectedMemberNames, IEnumerable<string> actualMemberNames, string prefix)

Parameters

expectedMemberNames IEnumerable<string>

The expected member names

actualMemberNames IEnumerable<string>

The actual member names

prefix string

The prefix to be applied to the member names (may be an empty string for a top-level object, or a name in "member." format used as a prefix to show the member name list)

Returns