Please Answer Question Question Already Answered Write Unit Tests Class Sure 100 Code Cove Q37087611

Given the following UML, write the class Cup ImaxCapacityInML: int I- _actualLiquidContentsInML int pntinn +CupC maxCapacityI

Please answer the question below: (the above question is alreadyanswered)

Write unit tests for the above class. Be sure to have 100% codecoverage in your tests.

Answer of first two parts is:

public class Cup { private int _maxCapacityInML; private int _actualLiquidContentsInML; public Cup(int maxCapacityInML) { this._maxCapacityInML = maxCapacityInML; } public int getActualLiquidContentsInML() { return

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.