public void Spare() { RegularFrame myFrame = new RegularFrame(10); myFrame.AddBallScore(4); myFrame.AddBallScore(6, spare: true); Assert.IsTrue(myFrame.IsSpare); }
public void Add_Rolls_To_Existing_Frame() { RegularFrame myFrame = new RegularFrame(1); myFrame.AddBallScore(5); myFrame.AddBallScore(5); Assert.AreEqual(10, myFrame.GetScore()); }
public void Add_Bonus_Points_To_Spare() { RegularFrame myFrame = new RegularFrame(10); myFrame.AddBallScore(5); myFrame.AddBallScore(5, spare: true); myFrame.AddBonusPoints(6); Assert.AreEqual(16, myFrame.GetScore()); }
public void Strike() { RegularFrame myFrame = new RegularFrame(10); myFrame.AddBallScore(10, strike: true); Assert.IsTrue(myFrame.IsStrike); }
public void Add_Bonus_Points_To_Strike() { RegularFrame myFrame = new RegularFrame(10); myFrame.AddBallScore(10, strike: true); myFrame.AddBonusPoints(10); Assert.AreEqual(20, myFrame.GetScore()); }