예제 #1
0
        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);
        }
예제 #2
0
        public void ShouldReturnACan()
        {
            var vendingMachine = new VendingMachine();

            vendingMachine.AddChoice(Choice.Cola);
            var can = vendingMachine.Deliver(Choice.Cola);

            Assert.IsNotNull(can);
        }