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 EqualToIncompatibleTypesAnalyzer false positive #229

Conversation

Dreamescaper
Copy link
Member

var actual = new[] { 1,2,2,1 };
Assert.That(actual, Has.All.EqualTo(1).Or.EqualTo(2));

Currently it shows warning for EqualTo(2).

Caused by #218 . I haven't figured out how to fix that issue properly so far, so adding this micro fix to analyzer itself.

Copy link
Member

@mikkelbu mikkelbu left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @Dreamescaper

@mikkelbu mikkelbu merged commit 992a7f3 into nunit:master May 5, 2020
@mikkelbu mikkelbu added this to the Release 0.3 milestone May 5, 2020
@Dreamescaper Dreamescaper deleted the fix_EqualToIncompatibleTypesAnalyzer_false_positive branch May 6, 2020 18:15
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.

2 participants