Table of Contents

Method ForDuplicateItem

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

ForDuplicateItem(string, string)

Creates an instance of the DistinctException class that is thrown when a duplicate item is found in a collection.

public static DistinctException ForDuplicateItem(string item, string collection)

Parameters

item string

The duplicate item

collection string

The collection

Returns