-
-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
Hi,
I have an issue when asserting the result of a call that returns a boolean. If the call throws an exception, the error message says it returned false, which is wrong.
Here's a test snippet:
await Assert.That(() => { throw new Exception("No"); return true; }).IsEqualTo(true);This is the error message:
Expected () => { throw new Exception("No"); return true; } to be equal to True
but found False
The message should not say that my lambda returned false, and the message should print the exception I have thrown.
EDIT: TUnit 0.24.0, .NET 9.0.5
Metadata
Metadata
Assignees
Labels
No labels