public void buyBeerAndLoversEmbraceTest() { Beer beer = new Beer(); LoversEmbrace loversEmbrace = new LoversEmbrace(); customer.buy(beer); customer.buy(loversEmbrace); string actual = customer.print(); string expect = "Beer(18.00)+LoversEmbrace(21.00*80%) | Total=34.80"; 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 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 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); }