Example #1
0
        private Frame BuildFrame(string firstLaunch, string secondLaunch)
        {
            var first  = GetLaunchValue(firstLaunch);
            var second = GetLaunchValue(secondLaunch);

            return(_builder.CreateFrame(first, second));
        }
Example #2
0
        public void ValidateFrameCreation(int firstLaunch, int secondLaunch, bool isSpareExpected, bool isStrikeExpected)
        {
            Frame frame = _frameBuilder.CreateFrame(firstLaunch, secondLaunch);

            Assert.Equal(isSpareExpected, frame.IsSpare);
            Assert.Equal(isStrikeExpected, frame.IsStrike);
        }