Example #1
0
        public void TestReset()
        {
            var trick = new Trick();

            trick.AddCard(new Card("J", Suit.DIAMONDS, 1, 0));
            trick.AddCard(new Card("Q", Suit.CLUBS, 10, 1));
            trick.AddCard(new Card("10", Suit.SPADES, 100, 2));
            trick.AddCard(new Card("7", Suit.DIAMONDS, 1000, 3));
            trick.AddValue(42);
            trick.ResetDeck();
            Assert.Equal(0, trick.GetDeck().Count);
            Assert.Equal(0, trick.GetValue());
        }