Пример #1
0
        public void TestOneStrike()
        {
            BowlingGame Game = new BowlingGame();

            Game.Roll(10);//strike
            Game.Roll(3);
            Game.Roll(4);
            Game.RollMany(0, 16);
            Assert.AreEqual(24, Game.Score());
        }
Пример #2
0
        public void TestOneSpare()
        {
            BowlingGame Game = new BowlingGame();

            Game.Roll(5);
            Game.Roll(5);//spare
            Game.Roll(3);
            Game.RollMany(0, 17);
            Assert.AreEqual(16, Game.Score());
        }