Table of Contents

Method ForKeyNotFound

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

ForKeyNotFound(string, string)

Creates a new instance of the ContainsException class to be thrown when the requested key was not available in the dictionary.

public static ContainsException ForKeyNotFound(string expectedKey, string keys)

Parameters

expectedKey string

The expected key value

keys string

The dictionary keys

Returns