public void GetBottomCard_ReturnsBottomCard() { var topCard = new FakeCard(); var bottomCard = new FakeCard(); var cardDeck = new CardDeck(new[] { topCard, bottomCard }); var card = cardDeck.GetBottomCard(); Assert.AreEqual(bottomCard, card); }
public void DrawCard_PutsTopCardOnTheBottom() { var card1 = new FakeCard(); var card2 = new FakeCard(); var cardDeck = new CardDeck(new[] { card1, card2 }); _ = cardDeck.DrawCard(); var card = cardDeck.GetBottomCard(); Assert.AreEqual(card1, card); }