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

NullReferenceSuppressor: Keep looking outside Assert.Multiple #438

Merged

Conversation

manfred-brands
Copy link
Member

for other reason to suppress.

Fixes #436

The problem was not the Has.Count.
This was considered a suppressible line, but as it was inside the Assert.Multiple it was ignored.
It should have looked further to find the Is.Not.Null.

@manfred-brands manfred-brands force-pushed the issue/436_cs8604_not_suppressed branch from 84deb52 to 1df05f1 Compare March 29, 2022 04:56
@manfred-brands manfred-brands mentioned this pull request Mar 30, 2022
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 and I find the new code a bit easier to read than the original code, so great work @manfred-brands. I'll merge it now

@mikkelbu mikkelbu merged commit f4e22da into nunit:master Mar 31, 2022
@mikkelbu mikkelbu added this to the Release 3.4 / 2.4 milestone Mar 31, 2022
@manfred-brands manfred-brands deleted the issue/436_cs8604_not_suppressed branch April 6, 2022 05: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.

Using Has.Count in Assert.Multiple re-raises nullable reference warning
2 participants