public void buyBlackTeaAndHoney() { BlackTea blackTea = new BlackTea(); Honey honey = new Honey(); customer.buy(blackTea); customer.buy(honey); string actual = customer.print(); string expect = "BlackTea(25.00)+Honey(4.50) | Total=29.50"; Assert.AreEqual(expect, actual); }
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 buyGreenTeaAndHoneyAndMilkAndChocolateTest() { GreenTea greenTea = new GreenTea(); Honey honey = new Honey(); Milk milk = new Milk(); Chocolate chocolate = new Chocolate(); customer.buy(greenTea); customer.buy(honey); customer.buy(milk); customer.buy(chocolate); string actual = customer.print(); string expect = "GreenTea(22.00)+Honey(4.50)+Milk(3.50)+Chocolate(7.00) | Total=37.00"; Assert.AreEqual(expect, actual); }
public void buyLoveFeelingsAndAllOfCondimentTest() { LoveFeelings loveFeelings = new LoveFeelings(); Honey honey = new Honey(); Milk milk = new Milk(); Chocolate chocolate = new Chocolate(); Mocha mocha = new Mocha(); Lemon lemon = new Lemon(); customer.buy(loveFeelings); customer.buy(honey); customer.buy(milk); customer.buy(chocolate); customer.buy(mocha); customer.buy(lemon); string actual = customer.print(); string expect = "LoveFeelings(49.00)+Honey(4.50*80%)+Milk(3.50*80%)+Chocolate(7.00*80%)+Mocha(8.00*80%)+Lemon(5.00*80%) | Total=71.40"; 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); }