Class SingleException
Exception thrown when the collection did not contain exactly one element.
Namespace: Xunit.Sdk
Assembly: xunit.assert.dll
Syntax
public class SingleException : XunitException
Methods
| Improve this Doc View SourceEmpty()
Creates an instance of SingleException for when the collection was empty.
Declaration
public static SingleException Empty()
Returns
Type | Description |
---|---|
SingleException |
MoreThanOne()
Creates an instance of SingleException for when the collection had too many items.
Declaration
public static SingleException MoreThanOne()
Returns
Type | Description |
---|---|
SingleException |