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
expectedobjectThe expected value
actualobjectThe actual value
bannerstringThe banner to show; if
null, then the standard banner of "Values differ" will be used