示例#1
0
        public void Is_GetComputerShot_tested()
        {
            int trials = 0;
            var result = 0;

            for (trials = 0; checkTheInput(trials, result); trials++)
            {
                result = RockPaperScissorsGame.GetComputerShot();
                Assert.True(IsValidRPSThrow(result),
                            $"This Throw is {result} and {RockPaperScissorsGame.GetShotName(result)}.");
                //Console.WriteLine($"This Throw is {result} and {RockPaperScissorsGame.GetShotName(result)}.");
            }

            Assert.True(trials >= 99, "There should have been 99 trials.");
        }