示例#1
0
        public void DrinkMakerTest_CreditoSenzaResto()
        {
            var coffeMachineService = new CoffeMachine();
            var drinkMaker          = new DrinkMaker(0.5M, new Chocolate(2), coffeMachineService);

            Assert.True(0.0M == drinkMaker.Deliver());
        }
示例#2
0
        public void DrinkMakerTest_Coffe()
        {
            var coffeMachineService = new CoffeMachine();
            var drinkMaker          = new DrinkMaker(0.6M, new Coffe(2), coffeMachineService);

            Assert.True(0.0M == drinkMaker.Deliver());
        }
示例#3
0
        public void DrinkMakerTest_CreditoInsufficiente()
        {
            var coffeMachineService = new CoffeMachine();
            var drinkMaker          = new DrinkMaker(0.3M, new Chocolate(2), coffeMachineService);

            Assert.Equal(null, drinkMaker.Deliver());
        }