コード例 #1
0
        public void CanSubstractFromCoffeeMachingWhenCapIsMAde()
        {
            var coffeeMachine = new CoffeeMachine.CoffeeMachine(true, 14, 20, 4, 10, _refiller);

            coffeeMachine.MakeBeverage(BeverageType.Capp);

            global::Ingredients.Ingredients remainingIngredients = new global::Ingredients.Ingredients(2, 19.7, 3.9, 9);

            Assert.IsTrue(coffeeMachine.hasIngredients(remainingIngredients));
        }