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
expectedTypeThe exception type
expectedParamNamestringThe expected parameter name
actualParamNamestringThe actual parameter name