PostSharpAPI ReferencePost­Sharp.​PatternsAssertion­Failed­ExceptionAssertion­Failed­Exception
Open sandboxFocus

AssertionFailedException Constructor

AssertionFailedException()

Initializes a new AssertionFailedException with the default error message.

Declaration
public AssertionFailedException()

AssertionFailedException(String)

Initializes a new AssertionFailedException and specifies the error message.

Declaration
public AssertionFailedException(string message)
Parameters
Type Name Description
System.String message

AssertionFailedException(String, Exception)

Initializes a new AssertionFailedException and specifies the error message and the inner Exception.

Declaration
public AssertionFailedException(string message, Exception inner)
Parameters
Type Name Description
System.String message
Exception inner