Show / Hide Table of Contents

Class EmptyException

Exception thrown when a collection is unexpectedly not empty.

Inheritance
Object
XunitException
EmptyException
Inherited Members
XunitException.StackTrace
XunitException.UserMessage
XunitException.ToString()
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class EmptyException : XunitException

Constructors

| Improve this Doc View Source

EmptyException(IEnumerable)

Creates a new instance of the EmptyException class.

Declaration
public EmptyException(IEnumerable collection)
Parameters
Type Name Description
IEnumerable collection

Properties

| Improve this Doc View Source

Collection

The collection that failed the test.

Declaration
public IEnumerable Collection { get; }
Property Value
Type Description
IEnumerable
| Improve this Doc View Source

Message

Declaration
public override string Message { get; }
Property Value
Type Description
String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX