Method ForMismatchedStringsWithHeader
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForMismatchedStringsWithHeader(string?, string?, int, int, string)
Creates a new instance of EqualException to be thrown when two string values are not equal.
public static EqualException ForMismatchedStringsWithHeader(string? expected, string? actual, int expectedIndex, int actualIndex, string header)
Parameters
expectedstringThe expected value
actualstringThe actual value
expectedIndexintThe index point in the expected string where the values differ
actualIndexintThe index point in the actual string where the values differ
headerstringThe header to display in the assertion heading