Ejemplo n.º 1
0
        public void player_should_be_able_to_clear_hands()
        {
            var player = new Player("test player");
            player.ReceiveCard(AceClub);
            player.ReceiveCard(AceClub);

            player.SplitHand();
            player.ClearHands();

            Assert.AreEqual(1, player.Hands.Count);
            Assert.AreEqual(0, player.Hands[0].Cards.Count);
        }
Ejemplo n.º 2
0
        public void player_splitting_hand_should_result_in_two_hands()
        {
            var player = new Player("test player");
            player.ReceiveCard(AceClub);
            player.ReceiveCard(AceClub);

            player.SplitHand();

            Assert.AreEqual(2, player.Hands.Count);
        }