Ejemplo n.º 1
0
        public void CardCountInShopDeck()
        {
            int expected = 3 * TalismanDeckFactory.CARDMULTIPLIER;
            int actual   = TalismanDeckFactory.CreateDeck(DeckType.SHOP).NumberOfCards;

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void CardCountInAdventureDeck()
        {
            int expected = 13 * TalismanDeckFactory.CARDMULTIPLIER;
            int actual   = TalismanDeckFactory.CreateDeck(DeckType.ADVENTURE).NumberOfCards;

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
        public void DeckShuffle()
        {
            Deck deck     = TalismanDeckFactory.CreateDeck(DeckType.ADVENTURE);
            var  oldcards = deck.Cards;

            deck.Shuffle();
            Assert.IsFalse(oldcards.SequenceEqual(deck.Cards));
        }
Ejemplo n.º 4
0
        public void CardDraw()
        {
            Deck deck      = TalismanDeckFactory.CreateDeck(DeckType.ADVENTURE);
            var  oldncards = deck.NumberOfCards;

            deck.Draw();
            Assert.AreEqual(oldncards - 1, deck.NumberOfCards);
        }