Coverage after null-conditional operators
If you are using null-conditional operators like:
something?.DoSomething()
DotCover always marks the whole line as covered even if 'something' is always null.
That's a big issue for us because there is a lot of code that apeares covered, but ist not.
Please sign in to leave a comment.
Sounds the same is the following asked 10 years ago: https://dotnettools-support.jetbrains.com/hc/en-us/community/posts/205838099-Will-branch-coverage-be-included-?page=1#community_comment_360001565820
Hello folks,
Though the issue is well-known on our side, I have created a fresh note for that.
Please refer to the bug tracker for further updates.