Пример #1
0
 public void Spare()
 {
     game.Spare(4, 6);
     //6+4=10 + 1st next throw i.e. 3
     //13
     game.OpenFrame(3, 5);
     //13+8 = 21
     ManyOpenFrames(8, 0, 0);
     Assert.AreEqual(21, game.Score());
 }
Пример #2
0
 // 5/ 5/ 5/ 5/ 5/ 5/ 5/ 5/ 5/ 5/5 (21 rolls: 10 pairs of 5 and spare, with a final 5) = 10 frames * 15 points = 150
 public void SpareFive()
 {
     for (int i = 0; i < 10; i++)
     {
         game.Spare(5, 5);
     }
     game.BonusRoll(5);
     game.BonusRoll(5);
     game.BonusRoll(5);
     Assert.AreEqual(150, game.Score());
 }