Пример #1
0
        public void calling_get_initial_hand_before_placing_ante_throws_exception()
        {
            // Arrange
            var player = new BlackjackPlayer();

            // Act
            player.GetInitialHand();
        }
Пример #2
0
        public void calling_get_initial_hand_returns_first_hand()
        {
            // Arrange
            var player = new BlackjackPlayer();
            player.PlaceBet();
            player.PlaceBet();

            var hands = (List<IPlayerHand>)player.Hands;
            hands.Count.Should().Equal(2);
            var hand1 = hands[0];

            // Act
            var hand = player.GetInitialHand();

            // Assert
            hand.Should().Not.Be.Null();
            hand.Should().Be.SameAs(hand1);
        }