public void FourOrders200CentEmptyMachine_01() { int[] coins = { 2, 3, 4, 3, 3, 3 }; string[] productNames = { "Kaffee", "Tee", "Suppe", "Milch" }; Logic.CoffeeSlotMachine coffeeSlotMachine = new Logic.CoffeeSlotMachine(coins, productNames); coffeeSlotMachine.InsertCoin(200); coffeeSlotMachine.SelectProduct("Kaffee", out _); coffeeSlotMachine.InsertCoin(200); coffeeSlotMachine.SelectProduct("Kaffee", out _); coffeeSlotMachine.InsertCoin(200); coffeeSlotMachine.SelectProduct("Kaffee", out _); coffeeSlotMachine.InsertCoin(200); coffeeSlotMachine.SelectProduct("Kaffee", out _); coffeeSlotMachine.EmptyDepot(out int cents); Assert.AreEqual(1400, cents, "7 * 200 Cent"); Assert.AreEqual(0, coffeeSlotMachine.CoinsInDepot, "Depot wurde geleert"); coffeeSlotMachine.EmptyDepot(out cents); Assert.AreEqual(0, cents, "Depot wurde gerade geleert"); }