public void InitiliseCardPileTest() { BohnanzaGame_Accessor target = new BohnanzaGame_Accessor(players); target.InitiliseCardPile(); Assert.IsTrue(target.CardDeck.NumberOfCards> 0); }
public void ReInitialiseCardPileTest() { BohnanzaGame_Accessor target = new BohnanzaGame_Accessor(players); target.InitiliseCardPile(); var numCards = target.CardDeck.NumberOfCards; while (target.CardDeck.NumberOfCards > 0) target.DiscardDeck.PutCard(target.CardDeck.GetCard()); target.ReInitialiseCardPile(); Assert.IsTrue(target.DiscardDeck.NumberOfCards == 0); Assert.IsTrue(target.CardDeck.NumberOfCards == numCards); }