public void LastRoundShouldCalculateFrameShouldThrowInvalidScoreException() { // Arrange var currentFrame = new LastFrame { FirstScore = 5, SecondScore = 7, ThirdScore = 3 }; // Act var frameScore = currentFrame.CalculateOpenFrame(); }
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); }