Table of Contents

Class ContainsException

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

Exception thrown when Assert.Contains fails.

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

Methods

ForCollectionFilterNotMatched(string)

Creates a new instance of the ContainsException class to be thrown when the requested filter did not match any items in the collection.

ForCollectionItemNotFound(string, string)

Creates a new instance of the ContainsException class to be thrown when the requested item was not available in the collection.

ForKeyNotFound(string, string)

Creates a new instance of the ContainsException class to be thrown when the requested key was not available in the dictionary.

ForSetItemNotFound(string, string)

Creates a new instance of the ContainsException class to be thrown when the requested item was not found in the set.

ForSubMemoryNotFound(string, string)

Creates a new instance of the ContainsException class to be thrown when the requested sub-memory was not found in the memory.

ForSubSpanNotFound(string, string)

Creates a new instance of the ContainsException class to be thrown when the requested sub-span was not found in the span.

ForSubStringNotFound(string, string?)

Creates a new instance of the ContainsException class to be thrown when the requested sub-string was not found in the string.