Table of Contents

Class EmptyException

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

Exception thrown when Assert.Empty fails.

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

Methods

ForNonEmptyCollection(string)

Creates a new instance of the EmptyException to be thrown when the collection is not empty.

public static EmptyException ForNonEmptyCollection(string collection)

Parameters

collection string

The non-empty collection

Returns

EmptyException

ForNonEmptyString(string)

Creates a new instance of the EmptyException to be thrown when the string is not empty.

public static EmptyException ForNonEmptyString(string value)

Parameters

value string

The non-empty string value

Returns

EmptyException