Ejemplo n.º 1
0
        public void TestCardNotExists()
        {
            mockICards.Setup(m => m.CheckCardExists(It.IsAny <int>(), It.IsAny <CardType>())).Returns(false);
            ICards crds = mockICards.Object;

            Assert.IsFalse(crds.CheckCardExists(4, CardType.Club));
        }
Ejemplo n.º 2
0
        public void TestCardExists()
        {
            mockICards.Setup(m => m.CheckCardExists(It.IsAny <int>(), It.IsAny <CardType>())).Returns(true);
            ICards crds = mockICards.Object;

            Assert.IsTrue(crds.CheckCardExists(3, CardType.Diamond));
        }