The following code snippets give different code coverage stats:
Quote:if (isValid) return;
Quote:if (isValid)
{
return;
}
The first example has 100% coverage if isValid = false
The second example has <100% coverage if isValid = false
Now I appreciate some developers will say that all if statements should have braces, but we have a lot of legacy code that doesn't.
DotCover returns < 100% which is what I'd expect.