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
expectedobjectThe object that was expected to be found in
actualcollection.actualIEnumerable<object>The actual collection which was missing the object.
memberNamestringThe name of the member that was being inspected (may be an empty string for a top-level collection)