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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!