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
expectedIEnumerable<object>The values expected to be found in the
actualcollection.actualIEnumerable<object>The actual collection values.
actualLeftoversIEnumerable<object>The values from
actualthat did not have matchingexpectedvaluesmemberNamestringThe name of the member that was being inspected (may be an empty string for a top-level collection)