BowlingTest.ScoreBoardTest.ScoreBoardShouldCountTotalScoresWhenThereAreConsectiveStrikesAndSpares C# (CSharp) Метод

ScoreBoardShouldCountTotalScoresWhenThereAreConsectiveStrikesAndSpares() приватный Метод

        public void ScoreBoardShouldCountTotalScoresWhenThereAreConsectiveStrikesAndSpares()
        {
            //given
            var scoreBoard = new ScoreBoard();
            scoreBoard.AddFrame(10, 0); //30
            scoreBoard.AddFrame(10, 0); //30
            scoreBoard.AddFrame(10, 0); //25
            scoreBoard.AddFrame(10, 0); //20
            scoreBoard.AddFrame(5, 5); //10
            scoreBoard.AddFrame(0, 0); //0
            scoreBoard.AddFrame(2, 8); //16
            scoreBoard.AddFrame(6, 4); //20
            scoreBoard.AddFrame(10, 0); //15
            scoreBoard.AddLastFrame(3, 2); //5

            //when
            var totalScore = scoreBoard.Score;

            //then
            Assert.AreEqual(171, totalScore);
        }