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

        Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
    }
Пример #8
0
 public void T03Bowl28SpareReturnsEndTurn()
 {
     int[] rolls = { 8, 2 };
     Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
 }
Пример #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()));
 }
Пример #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()));
    }
Пример #11
0
 public void T12ZeroOnesGivesEndTurn()
 {
     int[] rolls = { 0, 1 };
     Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
 }
Пример #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()));
    }
Пример #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()));
    }
Пример #14
0
 public void T01FirstStrikeReturnsEndTurn()
 {
     pinFalls.Add(10);
     Assert.AreEqual(endTurn, ActionMaster.NextAction(pinFalls));
 }
Пример #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()));
 }
Пример #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()));
 }
Пример #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()));
 }
Пример #18
0
 public void T10NathanBowlIndexTest()
 {
     int[] rolls = { 0, 10, 5, 1 };
     Assert.AreEqual(endTurn, ActionMaster.NextAction(rolls.ToList()));
 }
Пример #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()));
 }
Пример #20
0
    public void T11BowlStrikeOnSecondReturnSingleIncrement()
    {
        int[] rolls = { 0, 10, 2 };

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