public void buyCokeAndLemon() { Coke coke = new Coke(); Lemon lemon = new Lemon(); customer.buy(coke); customer.buy(lemon); string actual = customer.print(); string expect = "Coke(12.00)+Lemon(5.00) | Total=17.00"; Assert.AreEqual(expect, actual); }
public void buyCokeTest() { Coke coke = new Coke(); customer.buy(coke); string actual = customer.print(); string expect = "Coke(12.00) | Total=12.00"; Assert.AreEqual(expect, actual); }
public void buyCokeAndAllCondimentTest() { Coke coke = new Coke(); Milk milk = new Milk(); Honey honey = new Honey(); Lemon lemon = new Lemon(); Chocolate chocolate = new Chocolate(); Mocha mocha = new Mocha(); customer.buy(coke); customer.buy(milk); customer.buy(honey); customer.buy(lemon); customer.buy(chocolate); customer.buy(mocha); string actual = customer.print(); string expect = "Coke(12.00)+Milk(3.50)+Honey(4.50)+Lemon(5.0)+Chocolate(7.00)+ Mocha(8.0) | Total=40.00"; Assert.AreEqual(expect, actual); }