Generate test cases for the following code by using MC/DC.
a) Draw the CFG.
b) What is MC/DC logic
coverage criteria?
c) List the test
cases.
d) Validate the test cases
can achieve MC/DC.
public void TestValues( int a, int b, ref int x )
{
x = 0;
if (a > 0 || b < 0)
x = 1;
else if (a > 10 && b
> 10)
x = -1;
}
Get Answers For Free
Most questions answered within 1 hours.