public void TwoRoll() { Player player = new Player(); player.Roll(2); player.Roll(3); Assert.AreEqual(new Score(5), player.CalcScore()); }
public void Strike() { Player player = new Player(); player.Roll(10); player.Roll(8); player.Roll(1); player.Roll(3); Assert.AreEqual(new Score(31), player.CalcScore()); }
public void Spare() { Player player = new Player(); player.Roll(2); player.Roll(8); player.Roll(2); player.Roll(3); Assert.AreEqual(new Score(17), player.CalcScore()); }
public void Perfect() { Player player = new Player(); for (int i = 0; i < 12; i++) player.Roll(10); Assert.AreEqual(new Score(300), player.CalcScore()); }
public void ErrorOneRoll() { Player player = new Player(); player.Roll(-1); }
public void ErrorFrameOver() { Player player = new Player(); player.Roll(2); player.Roll(9); }