Table of Contents

Method MoreThanOne

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

MoreThanOne(int, string?, string, ICollection<int>)

Creates an new instance of the SingleException class to be thrown when the collection more than one value (or contained more than one of the expected value).

public static SingleException MoreThanOne(int count, string? expected, string collection, ICollection<int> matchIndices)

Parameters

count int

The number of items, or the number of matching items

expected string

The expected value (set to null for no expected value)

collection string

The collection

matchIndices ICollection<int>

The list of indices where matches occurred

Returns