public void RandomAI_TakeTurn_ThreeCandiesRemainValidChoice() { RandomGameAI ai = new RandomGameAI(); int candyCount = 13; Moves previousMove = Moves.Three; for (int i = 0; i < 500; i++) { Moves choice = ai.TakeTurn(previousMove, candyCount); } // Any Error Here from the ai will break this test }
public void RandomAI_TakeTurn_OneCandyRemainsValidChoice() { RandomGameAI ai = new RandomGameAI(); int candyCount = 1; Moves previousMove = Moves.Three; for (int i = 0; i < 500; i++) { Moves choice = ai.TakeTurn(previousMove, candyCount); // AI Should always choose One Assert.IsTrue(choice == Moves.One); } // Any Error Here from the ai will break this test }
public void RandomAI_TakeTurn_TwoCandiesRemainValidChoice() { RandomGameAI ai = new RandomGameAI(); int candyCount = 2; Moves previousMove = Moves.Three; for (int i = 0; i < 500; i++) { Moves choice = ai.TakeTurn(previousMove, candyCount); // AI Should never choose Three Assert.IsFalse(choice == Moves.Three); } // Any Error Here from the ai will break this test }