Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(DeepAssert): throw created exception #108

Merged
merged 1 commit into from
Apr 9, 2024
Merged

fix(DeepAssert): throw created exception #108

merged 1 commit into from
Apr 9, 2024

Conversation

stefanpeknik
Copy link
Contributor

@stefanpeknik stefanpeknik commented Apr 6, 2024

Both methods in DeepAssert are supposed to throw an exception if the comparison fails. The exception is created using a static method EqualException.ForMismatchedValues(...), but is never thrown, resulting in the compare always being successful.

Fix is to throw the created exception.

This bug was introduced here: d5ccaae#diff-da32ce4258864d0aac1bd9a578460295a867a3637ff3dacb4a5865e8de82bc4e

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Both methods in DeepAssert are supposed to throw an exception if the comparison fails. The exception is created using a static method EqualException.ForMismatchedValues(...), but is never thrown, resulting in the compare always being successful.

Fix is to throw the created exception.
@pluskal pluskal merged commit 209fa4f into nesfit:master Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants