ExceptionAssertExtensions.

IsInvalidOperationException(Exception, string) Method

Summary

Checks if an execption is of type System.InvalidOperationException.

Syntax

public static void IsInvalidOperationException(this Exception exception, string message)

Parameters

Name Type Description
exception Exception Exception to check.
message string Expected exception message.

Return Value

Type Description
void
GitHub