expectError
Defines expectation that an error occurred during command processing.
This method verifies that the aggregate command failed and threw an exception.
Return
this ExpectDsl instance for method chaining
Defines expectations for a specific error that occurred.
This method verifies properties of the exception that was thrown during command processing, such as message, type, or custom properties.
Return
this ExpectDsl instance for method chaining
Parameters
E
the expected exception type
expected
lambda function defining the expected error properties