Show / Hide Table of Contents

Class SingleException

Exception thrown when the collection did not contain exactly one element.

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

Methods

| Improve this Doc View Source

Empty()

Creates an instance of SingleException for when the collection was empty.

Declaration
public static SingleException Empty()
Returns
Type Description
SingleException
| Improve this Doc View Source

MoreThanOne()

Creates an instance of SingleException for when the collection had too many items.

Declaration
public static SingleException MoreThanOne()
Returns
Type Description
SingleException
  • Improve this Doc
  • View Source
Back to top Generated by DocFX