expect
Applies custom expectations to the test result.
This method allows for flexible assertion logic by providing access to the complete ExpectedResult, enabling complex validation scenarios beyond the built-in methods.
Return
the current expecter instance for method chaining
Parameters
expected
a lambda function that receives the ExpectedResult and performs assertions