private static void SetScoreLastFrame(IList <int?> score, ILastFrame lastFrame) { lastFrame.SetBallOne(score[0] == null ? 0 : (int)score[0]); lastFrame.SetBallTwo(score[1] == null ? 0 : (int)score[1]); lastFrame.SetBallThree(score[2] == null ? 0 : (int)score[2]); }
public void It_Should_Be_Able_To_Tell_If_It_Is_A_Strike() { _frame.SetBallOne(NumberOfPins); Assert.IsTrue(_frame.IsStrike); }