Table of Contents

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

expected string

The expected value

actual string

The actual value

expectedIndex int

The index point in the expected string where the values differ

actualIndex int

The index point in the actual string where the values differ

header string

The header to display in the assertion heading

Returns