public void TestCall_CreateBot_BotChipsShouldBeSubtractedByRaise() { IPlayerMove playerMove = new PlayerMove(); IBot currentPlayer = new Bot("Bot 1", 0, 0, 0); currentPlayer.Status = new Label(); bool isRisingActivated = false; int globalRaise = 500; TextBox box = new TextBox(); box.Text = "0"; playerMove.Call(currentPlayer, currentPlayer.Status, ref isRisingActivated, ref globalRaise, box); Assert.AreEqual(9500, currentPlayer.Chips, "Player chips should be 9500 after checked."); }
public void TestCheck_CreateBot_BotCantRise() { IPlayerMove playerMove = new PlayerMove(); IBot currentPlayer = new Bot("Bot 1", 0, 0, 0); currentPlayer.Status = new Label(); bool isRisingActivated = false; int globalRaise = 500; TextBox box = new TextBox(); box.Text = "0"; playerMove.Call(currentPlayer, currentPlayer.Status, ref isRisingActivated, ref globalRaise, box); Assert.IsFalse(currentPlayer.CanMakeTurn, "Bot shouldnt be able to make turn."); Assert.IsFalse(isRisingActivated, "Bot shouldnt be able to raise"); }