Table of Contents

Method ForMissingCollectionValue

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

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

Creates a new instance of EquivalentException which shows a message that indicates a value was missing from the actual collection.

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

Parameters

expected object

The object that was expected to be found in actual collection.

actual IEnumerable<object>

The actual collection which was missing the object.

memberName string

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

Returns