Exemple #1
0
        public void WhenACardIsAddedToADeck_TheNextCardOffTheDeckIsTheLastCardAdded()
        {
            var deck = new Deck();

            var card = new Cards.Number(1, CardColour.Blue);

            deck.Push(card);

            Assert.AreEqual(deck.Pop(), card);
        }
Exemple #2
0
        public void WhenACardIsAddedToADeck_TheNextCardOffTheDeckIsTheLastCardAdded()
        {
            var deck = new Deck();

            var card = new Cards.Number(1, CardColour.Blue);

            deck.Push(card);

            Assert.AreEqual(deck.Pop(), card);
        }