Question: Generate test cases for the following code by using MC/DC. a) Draw the CFG. b) c) d) What is MC/DC logic coverage criteria? List
Generate test cases for the following code by using MC/DC. a) Draw the CFG. b) c) d) What is MC/DC logic coverage criteria? List the test cases. 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; }
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
