Skip to content

Fixes #4876 - Tests with negative tolerance always fail without proper message#4881

Merged
stevenaw merged 2 commits intonunit:mainfrom
RaffaelCH:issue/4876_negative_tolerance
Nov 8, 2024
Merged

Fixes #4876 - Tests with negative tolerance always fail without proper message#4881
stevenaw merged 2 commits intonunit:mainfrom
RaffaelCH:issue/4876_negative_tolerance

Conversation

@RaffaelCH
Copy link
Copy Markdown
Contributor

@RaffaelCH RaffaelCH commented Nov 8, 2024

Fixes issue #4876

Currently executing a test with a negative Tolerance (e.g., Is.Equal.Within(-1)) leads to the test not passing without any errors. With these changes an ArgumentException is thrown at runtime instead.

@RaffaelCH
Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

Copy link
Copy Markdown
Member

@OsirisTerje OsirisTerje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@stevenaw stevenaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well. Thanks for your contribution @RaffaelCH !

@stevenaw stevenaw merged commit 18e1b3a into nunit:main Nov 8, 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.

3 participants