public void T06RolsInEndGame() { int[] rolls = { 8, 2, 7, 3, 3, 4, 10, 2, 8, 10, 10, 8, 0, 10, 8, 2, 9 }; Assert.AreEqual(endGame, ActionMaster.NextAction(rolls.ToList())); }
public void T03Bows28SparelReturnsEndTurn() { pinDrops.Add(2); pinDrops.Add(8); Assert.AreEqual(endTurn, ActionMaster.NextAction(pinDrops)); }
public void T05CheckResetAtSpareInLastFrame() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 9 }; Assert.AreEqual(reset, ActionMaster.NextAction(rolls.ToList())); }
public void T01OneStrikeReturnsendTurn() { pinDrops.Add(10); Assert.AreEqual(endTurn, ActionMaster.NextAction(pinDrops)); }
public void T02Bowl8ReturnsTidy() { pinDrops.Add(8); Assert.AreEqual(tidy, ActionMaster.NextAction(pinDrops)); }
public void T09CheckTidyAtgutterball20InLastFrame() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0 }; Assert.AreEqual(tidy, ActionMaster.NextAction(rolls.ToList())); }
public void T13Bowl0and1ReturnEndTurn() { int[] rolls = { 0, 1 }; Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList())); }
public void T03Bowl28SpareReturnsEndTurn() { int[] rolls = { 8, 2 }; Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList())); }
public void T07GameEndsAtBowl20() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; Assert.AreEqual(endGame, ActionMaster.NextAction(rolls.ToList())); }
public void T10Bowl20StrikeFailReturnTidy() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0 }; Assert.AreEqual(tidy, ActionMaster.NextAction(rolls.ToList())); }
public void T12ZeroOnesGivesEndTurn() { int[] rolls = { 0, 1 }; Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList())); }
public void T09Bowl19StrikeReturnReset() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10 }; Assert.AreEqual(reset, ActionMaster.NextAction(rolls.ToList())); }
public void T04ResetAtStrikeAtLastFrame() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10 }; Assert.AreEqual(reset, ActionMaster.NextAction(rolls.ToList())); }
public void T01FirstStrikeReturnsEndTurn() { pinFalls.Add(10); Assert.AreEqual(endTurn, ActionMaster.NextAction(pinFalls)); }
public void T07CheckEndgameAtLastFrame() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; Assert.AreEqual(endGame, ActionMaster.NextAction(rolls.ToList())); }
public void T09BensBowl20Test() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 0 }; Assert.AreEqual(tidy, ActionMaster.NextAction(rolls.ToList())); }
public void T08CheckTidyAtStrikeOn19InLastFrame() { int[] rolls = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 10, 5 }; Assert.AreEqual(tidy, ActionMaster.NextAction(rolls.ToList())); }
public void T10NathanBowlIndexTest() { int[] rolls = { 0, 10, 5, 1 }; Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList())); }
public void T10EndGameOnPerfectGame() { int[] rolls = { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 }; Assert.AreEqual(endGame, ActionMaster.NextAction(rolls.ToList())); }
public void T11BowlStrikeOnSecondReturnSingleIncrement() { int[] rolls = { 0, 10, 2 }; Assert.AreEqual(tidy, ActionMaster.NextAction(rolls.ToList())); }