예제 #1
0
        public void notOutOfPenaltyBoxAfterEvenRoll()
        {
            Game g = createGameWithTwoPlayers();

            g.Roll(2);
            g.MarkCurrentAnswerAsIncorrectAndMoveToNextPlayer();
            Assert.IsTrue(g.IsPreviousPlayerInPenaltyBox());
            g.Roll(3);
            g.MarkCurrentAnswerAsCorrectAndMoveToNextPlayer();
            g.Roll(2);
            g.MarkCurrentAnswerAsCorrectAndMoveToNextPlayer();
            Assert.IsTrue(g.IsPreviousPlayerInPenaltyBox());
        }
예제 #2
0
        public void notToPenaltyBoxAfterCorrectAnswer()
        {
            Game g = createGameWithTwoPlayers();

            g.Roll(2);
            g.MarkCurrentAnswerAsCorrectAndMoveToNextPlayer();
            Assert.IsFalse(g.IsPreviousPlayerInPenaltyBox());
        }
예제 #3
0
        public void toPenaltyBoxAfterWrongAnswer()
        {
            Game game = createGameWithTwoPlayers();

            game.Roll(4);
            game.MarkCurrentAnswerAsIncorrectAndMoveToNextPlayer();
            Assert.That(game.IsPreviousPlayerInPenaltyBox(), Is.True);
        }