Example #1
0
 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()));
 }
Example #2
0
 public void T03Bows28SparelReturnsEndTurn()
 {
     pinDrops.Add(2);
     pinDrops.Add(8);
     Assert.AreEqual(endTurn, ActionMaster.NextAction(pinDrops));
 }
Example #3
0
 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()));
 }
Example #4
0
 public void T01OneStrikeReturnsendTurn()
 {
     pinDrops.Add(10);
     Assert.AreEqual(endTurn, ActionMaster.NextAction(pinDrops));
 }
Example #5
0
 public void T02Bowl8ReturnsTidy()
 {
     pinDrops.Add(8);
     Assert.AreEqual(tidy, ActionMaster.NextAction(pinDrops));
 }
Example #6
0
 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()));
 }
Example #7
0
    public void T13Bowl0and1ReturnEndTurn()
    {
        int[] rolls = { 0, 1 };

        Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
    }
Example #8
0
 public void T03Bowl28SpareReturnsEndTurn()
 {
     int[] rolls = { 8, 2 };
     Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
 }
Example #9
0
 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()));
 }
Example #10
0
    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()));
    }
Example #11
0
 public void T12ZeroOnesGivesEndTurn()
 {
     int[] rolls = { 0, 1 };
     Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
 }
Example #12
0
    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()));
    }
Example #13
0
    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()));
    }
Example #14
0
 public void T01FirstStrikeReturnsEndTurn()
 {
     pinFalls.Add(10);
     Assert.AreEqual(endTurn, ActionMaster.NextAction(pinFalls));
 }
Example #15
0
 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()));
 }
Example #16
0
 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()));
 }
Example #17
0
 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()));
 }
Example #18
0
 public void T10NathanBowlIndexTest()
 {
     int[] rolls = { 0, 10, 5, 1 };
     Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
 }
Example #19
0
 public void T10EndGameOnPerfectGame()
 {
     int[] rolls = { 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10 };
     Assert.AreEqual(endGame, ActionMaster.NextAction(rolls.ToList()));
 }
Example #20
0
    public void T11BowlStrikeOnSecondReturnSingleIncrement()
    {
        int[] rolls = { 0, 10, 2 };

        Assert.AreEqual(tidy, ActionMaster.NextAction(rolls.ToList()));
    }