public void ShouldReturnACanOfTheSelectedChoice() { var vendingMachine = new VendingMachine(); vendingMachine.AddChoice(Choice.Fanta); vendingMachine.AddChoice(Choice.Cola); var can = vendingMachine.Deliver(Choice.Fanta); Assert.AreEqual(Choice.Fanta, can.Type); }
public void ShouldReturnACan() { var vendingMachine = new VendingMachine(); vendingMachine.AddChoice(Choice.Cola); var can = vendingMachine.Deliver(Choice.Cola); Assert.IsNotNull(can); }