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
expectedobjectThe expected member value
actualobjectThe actual member value
memberNamestringThe name of the mismatched member (may be an empty string for a top-level object)
innerExceptionExceptionThe inner exception that was thrown during value comparison, typically during a call to CompareTo(object)