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)); }
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)); }