public void TestDeckChangeTrumpCard() { var card = new Card(CardSuit.Club, CardType.Jack); var deck = new Santase.Logic.Cards.Deck(); deck.ChangeTrumpCard(card); Assert.AreEqual(card, deck.GetTrumpCard); }
public void TestDeckGetNextCardWhenDeckIsEmpty(int count) { var deck = new Santase.Logic.Cards.Deck(); for (int i = 0; i < count; i++) { var card = deck.GetNextCard(); } }
public void TestDeckCtorWithInvalidCardsCount(int cardsCount) { var deck = new Santase.Logic.Cards.Deck(); if (cardsCount == 24) { Assert.AreEqual(cardsCount, deck.CardsLeft); } else { Assert.AreNotEqual(cardsCount, deck.CardsLeft); } }
public void TestDeckGetNextCard() { var deck = new Santase.Logic.Cards.Deck(); var card = deck.GetNextCard(); Assert.AreEqual(23, deck.CardsLeft); }