Table of Contents

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

expected string

The expected value (set to null for no expected value)

collection string

The collection

Returns