コード例 #1
0
        public void It_Should_Be_Able_To_Tell_If_It_Is_A_Spare()
        {
            _frame.SetBallOne(6);
            _frame.SetBallTwo(4);

            Assert.IsTrue(_frame.IsSpare);
        }
コード例 #2
0
 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]);
 }