Exemplo n.º 1
0
        private object ExecuteTriviaGameWithIncrementalValues(int empty)
        {
            var randomWithWrong = Builder.RandomIncrementalValues.Build();

            AmplifiedGame aGame = new AmplifiedGame();

            GameRunner.ExecuteTriviaGame(randomWithWrong, aGame);

            return(aGame.GameStatus());
        }
Exemplo n.º 2
0
        private object ExecuteTriviaGameWithWrongAnswers(int diceValue, int successValue)
        {
            var randomWithWrong = Builder.RandomWithWrong
                                  .WithDiceValue(diceValue)
                                  .Build();

            AmplifiedGame aGame = new AmplifiedGame();

            GameRunner.ExecuteTriviaGame(randomWithWrong, aGame);

            return(aGame.GameStatus());
        }
Exemplo n.º 3
0
        private object ExecuteTriviaGame(int diceValue, int successValue)
        {
            var randomResult = Builder.Random
                               .WithDiceValue(diceValue)
                               .WithSuccessValue(successValue)
                               .Build();

            AmplifiedGame aGame = new AmplifiedGame();

            GameRunner.ExecuteTriviaGame(randomResult, aGame);

            return(aGame.GameStatus());
        }
Exemplo n.º 4
0
        public void get_same_file_with_incremental_dice_values_and_wrong_matchs()
        {
            StringBuilder sb = new StringBuilder();

            Console.SetOut(new StringWriter(sb));

            var random = Builder.RandomIncrementalValues.Build();

            Game aGame = new Game();

            GameRunner.ExecuteTriviaGame(random, aGame);

            string actualExecution = sb.ToString();

            Approvals.Verify(actualExecution);
        }
Exemplo n.º 5
0
        public void get_same_file_with_all_values_6_and_wrong_matchs_each_x_turns()
        {
            StringBuilder sb = new StringBuilder();

            Console.SetOut(new StringWriter(sb));

            var diceValue_6    = 6;
            var successValue_6 = 6;
            var random         = Builder.RandomWithWrong
                                 .WithDiceValue(diceValue_6)
                                 .Build();

            Game aGame = new Game();

            GameRunner.ExecuteTriviaGame(random, aGame);

            string actualExecution = sb.ToString();

            Approvals.Verify(actualExecution);
        }