Repository navigation
refactor all remaining == null to is null - #8243
Conversation
| Assert.False(element1 == (HtmlElement)null); | ||
| Assert.True((HtmlElement)null == (HtmlElement)null); | ||
| Assert.False(element1 is null); | ||
| Assert.False((HtmlElement)null is null); |
There was a problem hiding this comment.
this seems off. What are we doing here?
There was a problem hiding this comment.
I'll add back in the casts.
There was a problem hiding this comment.
@hughbe I think you wrote these tests. Could you explain the casts on null here?
There was a problem hiding this comment.
@dreddy-work I added an exclusion for now and we can revisit it to improve the tests.
There was a problem hiding this comment.
@elachlan, do you mind moving the CSisNULL warning suppressions in this PR to linked analyzer PR? Wanted to keep PRs isolated. This PR stand alone doesn't need those suppression if we do not merge other PR yet.
There was a problem hiding this comment.
Ok, so remove it from here and add it in #8244
dreddy-work
left a comment
There was a problem hiding this comment.
soem last ones seems off.
|
Flaky test. |
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Refactors all remaining code to use
is nullinstead of== nullusing CSharpIsNull analyzer code fix.Related: #3459
Microsoft Reviewers: Open in CodeFlow