public void DrinkMakerTest_CreditoSenzaResto() { var coffeMachineService = new CoffeMachine(); var drinkMaker = new DrinkMaker(0.5M, new Chocolate(2), coffeMachineService); Assert.True(0.0M == drinkMaker.Deliver()); }
public void DrinkMakerTest_Coffe() { var coffeMachineService = new CoffeMachine(); var drinkMaker = new DrinkMaker(0.6M, new Coffe(2), coffeMachineService); Assert.True(0.0M == drinkMaker.Deliver()); }
public void DrinkMakerTest_CreditoInsufficiente() { var coffeMachineService = new CoffeMachine(); var drinkMaker = new DrinkMaker(0.3M, new Chocolate(2), coffeMachineService); Assert.Equal(null, drinkMaker.Deliver()); }