Method Empty
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
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).
public static SingleException Empty(string? expected, string collection)
Parameters
expectedstringThe expected value (set to
nullfor no expected value)collectionstringThe collection