if condition is marked with green color even when it's covered partially only.
The problem occurs only when the condition is always true.
When the condition is always false then it's marked with orange color.
Steps to recreate
Test code
[TestCase(true, 1)]
public void IF_checker(bool condition, int expected)
{
var result = _mapper.Test(condition);
result.Should().Be(expected);
}
Implementation
public int Test(bool condition)
{
var result = 0;
if (condition)
{
result = 1;
}
return result;
}
Current behavior
Expected behavior
The line that contains if statement should be marked with orange color.
Installed product versions
Description
if
condition is marked with green color even when it's covered partially only. The problem occurs only when the condition is alwaystrue
. When the condition is alwaysfalse
then it's marked with orange color.Steps to recreate
Test code
Implementation
Current behavior
Expected behavior
The line that contains
if
statement should be marked with orange color.