-
-
Notifications
You must be signed in to change notification settings - Fork 365
Use Assert.Null when validating against null #359
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
Use Assert.Null when validating against null #359
Conversation
generators/Exercise.cs
Outdated
return new TestMethodBodyWithBooleanCheck(canonicalDataCase, CanonicalData); | ||
} | ||
|
||
if(canonicalDataCase.Expected is null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Type A in me is screaming about a missing space after the if
;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot that I can fix it inline :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh man, that would bother me too. I didn't even notice that. Usually Visual Studio just automatically tosses that in for me.
Nice work @jpreese! The only thing I wonder about this is should we be avoiding |
Thanks @jpreese 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
👍 I think we should definitely have some discussion on this issue. |
Part of #356