-
Notifications
You must be signed in to change notification settings - Fork 179
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
Prefer 'not null' pattern to 'is object' tests #1796
Labels
Milestone
Comments
blairconrad
changed the title
Consider using 'not null' pattern
Prefer 'not null' pattern to 'is object' tests
Nov 24, 2020
This change has been released as part of FakeItEasy 7.0.0-beta.1. |
Thanks, @Potapy4. Look for your name in the release notes! 🥇 |
This change has also been released as part of FakeItEasy 7.0.0. Thanks again, @Potapy4. |
This was referenced Mar 16, 2021
Merged
This was referenced Mar 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At some point, we adopted the pattern
x is object
for all null checks. But now C# 9 introduced a much more explicit syntax:x is not null
. We should consider adopting this syntax instead.@blairconrad any objection?
The text was updated successfully, but these errors were encountered: