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

Give equality hints like PowerAssert.NET #2

Open
EamonNerbonne opened this issue May 24, 2014 · 2 comments
Open

Give equality hints like PowerAssert.NET #2

EamonNerbonne opened this issue May 24, 2014 · 2 comments

Comments

@EamonNerbonne
Copy link
Owner

From eamon.nerbonne on January 11, 2011 16:07:47

PowerAssert.NET gives hints when objects aren't "equal" in one sense but are in another: e.g. if == fails, then if .Equals or .SequenceEqual holds, this should be mentioned.

Original issue: http://code.google.com/p/expressiontocode/issues/detail?id=2

@EamonNerbonne EamonNerbonne self-assigned this May 24, 2014
@EamonNerbonne
Copy link
Owner Author

From eamon.nerbonne on January 11, 2011 07:08:08

Labels: -Type-Defect Type-Enhancement

@EamonNerbonne
Copy link
Owner Author

From eamon.nerbonne on March 31, 2011 02:30:52

This would mean special casing to detect and deal with:

!=
object.Equals
IEquatable.Equals
EqualityComparer
Enumerable.SequenceEquals
IStructuralEquatable.Equals
IStructuralComparable.CompareTo

IComparable.CompareTo
IComparable.CompareTo
<

<=

IComparer.Compare
IComparer.Compare

@EamonNerbonne EamonNerbonne removed their assignment Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant