public void ValidateDrinkSelectionFalseCase() { Machineprogram machineprogram = new Machineprogram(); machineprogram.InsertCoins(100); machineprogram.InsertCoins(5); Assert.AreEqual(machineprogram.ValidateDrinkSelection(4), false); }
public void ReturnMoney() { Machineprogram machineprogram = new Machineprogram(); Assert.AreEqual(machineprogram.ValidateDrinkSelection(3), true); Assert.AreEqual(machineprogram.CheckDeposit(), false); Assert.AreEqual(machineprogram.ReturnChange(), false); machineprogram.InsertCoins(5); Assert.AreEqual(machineprogram.ReturnChange(), false); machineprogram.InsertCoins(100); Assert.AreEqual(machineprogram.CheckDeposit(), true); Assert.AreEqual(machineprogram.ReturnChange(), true); }