Table of Contents

Method ForIncorrectParameterName

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

ForIncorrectParameterName(Type, string?, string?)

Creates a new instance of the ThrowsException class to be thrown when an ArgumentException is thrown with the wrong parameter name.

public static ThrowsException ForIncorrectParameterName(Type expected, string? expectedParamName, string? actualParamName)

Parameters

expected Type

The exception type

expectedParamName string

The expected parameter name

actualParamName string

The actual parameter name

Returns