Table of Contents

Method ForExtraCollectionValue

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

ForExtraCollectionValue(IEnumerable<object?>, IEnumerable<object?>, IEnumerable<object?>, string)

Creates a new instance of EquivalentException which shows a message that indicates that actual contained one or more values that were not specified in expected.

public static EquivalentException ForExtraCollectionValue(IEnumerable<object?> expected, IEnumerable<object?> actual, IEnumerable<object?> actualLeftovers, string memberName)

Parameters

expected IEnumerable<object>

The values expected to be found in the actual collection.

actual IEnumerable<object>

The actual collection values.

actualLeftovers IEnumerable<object>

The values from actual that did not have matching expected values

memberName string

The name of the member that was being inspected (may be an empty string for a top-level collection)

Returns