public void buyCoffeeAndHoneyAndMilkTest() { Coffee coffee = new Coffee(); Honey honey = new Honey(); Milk milk = new Milk(); customer.buy(coffee); customer.buy(honey); customer.buy(milk); string actual = customer.print(); string expect = "Coffee(22.00)+Honey(4.50)+Milk(3.50) | Total=30.00"; Assert.AreEqual(expect, actual); }
public void buyCoffeeAndMilk() { Coffee coffee = new Coffee(); Milk milk = new Milk(); customer.buy(coffee); customer.buy(milk); string actual = customer.print(); string expect = "Coffee(22.00)+Milk(3.50) | Total=25.50"; Assert.AreEqual(expect, actual); }
public void buyCoffeeTest() { Coffee coffee = new Coffee(); customer.buy(coffee); string actual =customer.print() ; string expect = "Coffee(22.00) | Total=22.00"; Assert.AreEqual(expect, actual); }
public void buyCoffeeAndSugarTest() { Coffee coffee = new Coffee(); Sugar sugar = new Sugar(); customer.buy(coffee); customer.buy(sugar); string actual = customer.print(); string expect = "Coffee(22.00)+Sugar(1.00) | Total=23.00"; Assert.AreEqual(expect, actual); }