Exemplo n.º 1
0
        public void TestInitialize()
        {
            mockTumblers = new Mock<IList<ITumbler>>();
            mockTumblers.SetupGet(m => m.Count).Returns(1);

            slotMachine = new SlotMachine(mockTumblers.Object);
        }
Exemplo n.º 2
0
        public void TestInitialize()
        {
            mockTumblers = new List<Mock<ITumbler>>();
            var tumblers = new List<ITumbler>();

            for (int i = 0; i < COUNT; i++)
            {
                var mockTumbler = new Mock<ITumbler>();

                mockTumblers.Add(mockTumbler);
                tumblers.Add(mockTumbler.Object);
            }

            slotMachine = new SlotMachine(tumblers);
        }