Exemple #1
0
        public void GetTheGun()
        {
            VendingMachineViewModel vendingMachineViewModel = new VendingMachineViewModel();

            vendingMachineViewModel.Refill();
            vendingMachineViewModel.InsertChangeIntoMachine(Models.CoinWeight.BadCoin, Models.CoinDiameter.BadCoin);
            vendingMachineViewModel.Purchase(vendingMachineViewModel.Items[3]);
            Assert.AreEqual(0, vendingMachineViewModel.Items[3].Quantity);
        }