Class SingleException
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
Exception thrown when Assert.Single fails.
public class SingleException : XunitException, ISerializable, IAssertionException
- Inheritance
-
SingleException
- Implements
- Inherited Members
Methods
- Empty(string?, string)
Creates an new instance of the SingleException class to be thrown when the collection didn't contain any values (or didn't contain the expected value).
- MoreThanOne(int, string?, string, ICollection<int>)
Creates an new instance of the SingleException class to be thrown when the collection more than one value (or contained more than one of the expected value).