public void TestGetTopCard() { var crd = new Card() { cardType = CardType.Spade, id = "2Spade", num = 2 }; mockICards.Setup(m => m.GetTopCard()).Returns(crd); ICards crds = mockICards.Object; Assert.AreEqual(crd, crds.GetTopCard()); }