ExceptionAssertExtensions.

IsArgumentException(Exception, string) Method

Summary

Checks if an execption is of type System.ArgumentException.

Syntax

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

Parameters

Name Type Description
exception Exception Exception to check.
parameterName string Expected name of the parameter which has caused the exception.

Return Value

Type Description
void
GitHub