public void buyLoveFeelingsTest() { LoveFeelings loveFeelings = new LoveFeelings(); customer.buy(loveFeelings); string actual = customer.print(); string expect = "LoveFeelings(49.00) | Total=49.00"; Assert.AreEqual(expect, actual); }
public void buyLoveFeelingsAndLoversEmbraceTest() { LoveFeelings loveFeelings = new LoveFeelings(); LoversEmbrace loversEmbrace = new LoversEmbrace(); customer.buy(loveFeelings); customer.buy(loversEmbrace); string actual = customer.print(); string expect = "LoveFeelings(49.00)+LoversEmbrace(21.00*50%) | Total=59.50"; 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 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 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); }