示例#1
0
        public void LastRoundShouldCalculateFrameShouldThrowInvalidScoreException()
        {
            // Arrange
            var currentFrame = new LastFrame
            {
                FirstScore  = 5,
                SecondScore = 7,
                ThirdScore  = 3
            };

            // Act
            var frameScore = currentFrame.CalculateOpenFrame();
        }
示例#2
0
        public void LastRoundShouldSumAsOpenFrame()
        {
            // Arrange
            var currentFrame = new LastFrame
            {
                FirstScore  = 5,
                SecondScore = 5,
                ThirdScore  = 3
            };

            // Act
            var score = currentFrame.CalculateOpenFrame();

            // Assert
            Assert.AreEqual((5 + 5 + 3), score);
            Assert.AreEqual(FrameMark.Spare, currentFrame.FrameMark);
        }