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

Tolerance is not supported for IEquatable types #4516

Merged
merged 1 commit into from Nov 1, 2023

Conversation

manfred-brands
Copy link
Member

Fixes #4514

It previously fell back to property comparer if tolerance was used not even calling the type's defined comparison method.

Treatment is now more consistent.
It will complain about 'string', 'char', 'enum' and 'IEquatable'
For Tuples and user defined types, if one member supports Tolerance,
the whole Tuple/Class/Struct does.
@manfred-brands
Copy link
Member Author

This PR also make treatment of Tolerance more consistent.

It will complain about 'string', 'char', 'enum' and 'IEquatable'
For Tuples and user defined types, if one member supports Tolerance,
the whole Tuple/Class/Struct does.

@manfred-brands manfred-brands merged commit 8c51c41 into nunit:master Nov 1, 2023
5 checks passed
@manfred-brands manfred-brands deleted the Issue4514_Tolerance branch November 17, 2023 01:20
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.

If Tolerance is used a different comparer is used
2 participants