public void buyBeerAndLemon() { Beer beer = new Beer(); Lemon lemon = new Lemon(); customer.buy(beer); customer.buy(lemon); string actual = customer.print(); string expect = "Beer(18.00)+Lemon(5.00) | Total=23.00"; Assert.AreEqual(expect, actual); }
public void buyLoveFeelingsAndLoversEmbraceAndLemonTest() { LoveFeelings loveFeelings = new LoveFeelings(); Lemon lemon = new Lemon(); LoversEmbrace loversEmbrace = new LoversEmbrace(); customer.buy(loveFeelings); customer.buy(lemon); customer.buy(loversEmbrace); string actual = customer.print(); string expect = "LoveFeelings(49.00)+Lemon(5.00*80%)+LoversEmbrace(21.00*50%) | Total=63.50"; Assert.AreEqual(expect, actual); }
public void buyLoveFeelingsAndLemonTest() { LoveFeelings loveFeelings = new LoveFeelings(); Lemon lemon = new Lemon(); customer.buy(loveFeelings); customer.buy(lemon); string actual = customer.print(); string expect = "LoveFeelings(49.00)+Lemon(5.00*80%) | Total=53.00"; Assert.AreEqual(expect, actual); }
public void buyLoveFeelingsAndLemonAndLoversEmbraceOnFridayTest() { Boolean isFriday = true; LoveFeelings loveFeelings = new LoveFeelings(); Lemon lemon = new Lemon(); LoversEmbrace loversEmbrace = new LoversEmbrace(); customer.buy(loveFeelings); customer.buy(lemon); customer.buy(loversEmbrace); customer.setOrderDiscount(isFriday); string actual = customer.print(); string expect = "LoveFeelings(49.00)+Lemon(5.00*80%)+LoversEmbrace(21.00*50%) | Total=63.50*90%=57.15"; 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 buyLemonAndLoversEmbraceTest() { Lemon lemon = new Lemon(); LoversEmbrace loversEmbrace = new LoversEmbrace(); customer.buy(lemon); customer.buy(loversEmbrace); string actual = customer.print(); string expect = "Lemon(5.00)+LoversEmbrace(21.00*80%) | Total=21.80"; Assert.AreEqual(expect, actual); }
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 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); }