AssertEx.

IsArgumentException(Exception, string, string) Method

Summary

Verifies that the exception is an ArgumentException with the specified parameter name and message.
Namespace
Xunit
Containing Type
AssertEx

Syntax

public static void IsArgumentException(Exception exception, string parameterName, string message)

Parameters

Name Type Description
exception Exception The exception to verify.
parameterName string The expected parameter name.
message string The expected message.

Return Value

Type Description
void