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
expectedMemberNamesIEnumerable<string>The expected member names
actualMemberNamesIEnumerable<string>The actual member names
prefixstringThe 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)