Table of Contents

Method ForEqualCollections

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

ForEqualCollections(string, string, string?)

Creates a new instance of NotEqualException to be thrown when two collections are equal.

public static NotEqualException ForEqualCollections(string expected, string actual, string? collectionDisplay = null)

Parameters

expected string

The expected collection

actual string

The actual collection

collectionDisplay string

The display name for the collection type (defaults to "Collections")

Returns