Esempio n. 1
0
        public void GameShouldGiveOneMoreCardToPlayer_WhenCoinResultIsHead()
        {
            var player = Builder.CreatePlayer.MockPlease();
            var game   = Builder.CreateGame.With(player).And().WithHeadCoin().Please();

            game.PlayRound();

            AssertThat.PlayerHaveTwoCardsInWork(game, player.Object);
        }
Esempio n. 2
0
        public void GameShouldGiveOneMoreCardToPlayer_WhenCoinResultIsTails_AndHasNoCardsToMove()
        {
            var player = Builder.CreatePlayer.MockPlease();
            var game   = Builder.CreateGame.With(player).WithTailsCoin().Please();

            game.WorkCards.First().Block();

            game.PlayRound();

            AssertThat.PlayerHaveTwoCardsInWork(game, player.Object);
        }