public void beerTest() { string expect = "Beer (18.00) | Total=18.00"; string actual = string.Empty; Drinkable beer = new Beverage( "Beer",18.00M); beer.accumulatePrice(); actual = beer.getPrice() + beer.getTotal(); Assert.AreEqual(expect, actual); }
public void LoveFeelingsTest() { string expect = "LoveFeelings (49.00) | Total=49.00"; string actual = string.Empty; Drinkable loveFeelings = new Beverage( "LoveFeelings",49.00M); loveFeelings.accumulatePrice(); actual = loveFeelings.getPrice() + loveFeelings.getTotal(); Assert.AreEqual(expect, actual); }
public void plainTeaTest() { string expect = "PlainTea (25.00) | Total=25.00"; string actual = string.Empty; Drinkable plainTea = new Beverage( "PlainTea",25.00M); plainTea.accumulatePrice(); actual = plainTea.getPrice() + plainTea.getTotal(); Assert.AreEqual(expect, actual); }
public void cokeTest() { string expect = "Coke (12.00) | Total=12.00"; string actual = string.Empty; Drinkable coke = new Beverage("Coke",12.00M); coke.accumulatePrice(); actual = coke.getPrice() + coke.getTotal(); Assert.AreEqual(expect, actual); }