Table of Contents

Class CollectionException

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

Exception thrown when Assert.Collection fails.

public class CollectionException : XunitException, ISerializable, IAssertionException
Inheritance
CollectionException
Implements
Inherited Members

Methods

ForMismatchedItem(Exception, int, int?, string)

Creates an instance of the CollectionException class to be thrown when an item comparison failed

ForMismatchedItemCount(int, int, string)

Creates an instance of the CollectionException class to be thrown when the item count in a collection does not match the expected count.