public void Given_I_have_a_list_of_frames_and_one_is_a_strike_and_the_second_frame_has_a_score_of_10_and_is_a_spare_then_strike_total_is_20()
        {
            //given I have a list of frames
            FrameObject frame1 = new FrameObject();
            FrameObject frame2 = new FrameObject();

            //and the first frame total score is 10
            frame1.score = 10;
            //and the strike bool for the first frame is true
            frame1.wasStrike = true;
            //and the second frame total score is 10
            frame2.score = 10;
            //and the second frame strike bool is false
            frame2.wasStrike = false;
            //and the second frame spare bool is true
            frame2.wasSpare = true;
            //when the update strike score is called
            List <FrameObject> frameList = new List <FrameObject>()
            {
                frame1, frame2
            };
            ICalculateStrikeScore calculateUpdatedFrame = new CalculateStrikeScore();

            frameList = calculateUpdatedFrame.CalculateFrameScore(frameList);
            //then the first frame total score will be 20
            Assert.AreEqual(20, frame1.score);
        }
        public void Given_I_have_a_list_of_frames_and_one_is_a_strike_and_the_fourth_frame_is_a_strike_and_fifth_frame_first_bowl_is_a_10_then_first_strike_total_is_30()
        {
            //given I have a list of frames
            FrameObject frame1 = new FrameObject();
            FrameObject frame2 = new FrameObject();
            FrameObject frame3 = new FrameObject();
            FrameObject frame4 = new FrameObject();
            FrameObject frame5 = new FrameObject();

            //and the third frame total score is 10
            frame3.score = 10;
            //and the strike bool for the third frame is true
            frame3.wasStrike = true;
            //and the fourth frame total score is 10
            frame4.score = 10;
            //and the strike bool for the fourth frame is true
            frame4.wasStrike = true;
            //and the fifth frame bowl1 score is 10
            frame5.bowl1 = 10;
            //and the fifth frame strike bool is true
            frame5.wasStrike = true;
            //and the fifth frame spare bool is false
            frame5.wasSpare = false;
            //when the update strike score is called
            List <FrameObject> frameList = new List <FrameObject>()
            {
                frame1, frame2, frame3, frame4, frame5
            };
            ICalculateStrikeScore calculateUpdatedFrame = new CalculateStrikeScore();

            frameList = calculateUpdatedFrame.CalculateFrameScore(frameList);
            //then the second frame total score will be 30
            Assert.AreEqual(30, frame3.score);
        }