Question: Rewrite the following tests to remove bad smells (5 points) A. public void testWithBadSmell(){ B. } Calculator c= new Calculator(); int result = c.add(5,6);

Rewrite the following tests to remove bad smells (5 points) A. public void testWithBadSmell(){ B. } Calculator c= new Calculator(); int result = c.add(5,6); assert That(result > 0); assert True(result=11); public void testWithBadSmell(){ Calculator c= new Calcultor(); int result = c.add(5,6); assert That(result, equalTo(11)); int result = c.sub(5,6); assert That(result, equalTo(-1));
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
