Пример #1
0
        public void TestTwentyZeroGame()
        {
            var game = new Game();

            RunGame(game, Enumerable.Repeat(0, 20));

            Assert.AreEqual(0, game.GetScore());
        }
Пример #2
0
        public void TestFirstScoreStrikeThenZeros()
        {
            var game = new Game();

            var scores = new [] { 10 }.Concat(Enumerable.Repeat(0, 18));

            RunGame(game, scores);

            Assert.AreEqual(10, game.GetScore());
        }