I have below snippet
if(command.Channel == null) //partially 2 of 4 conditions
{
throw new ArgumentNullException(nameof(command));
}
in the tests we are covering Null, Empty and Valid strings… it should make 3 of 4, but it says 2 of 4 no matter what.
Even for
if(command.Channel.clock != null) //partially 2 of 4 conditions
{
foreach(var schedule in command.Channel.clock) //partially 2 of 4 conditions
{
do something
}
}
some idea why no matter how many tests are created still show 2 of 4 partially covered?