public void ConstructorTest() { // first case var firstBot = new HiOptIIStrategyBot(x => false, initialBet); Assert.IsFalse(firstBot.IsLeave()); Assert.IsTrue(firstBot.Hands != null); Assert.IsTrue(firstBot.Cash == initialBet); Assert.IsTrue(firstBot.Flag == PlayerState.Play); // second case var secondBot = new HiLowStrategyBot(x => false, initialBet); Assert.IsFalse(secondBot.IsLeave()); Assert.IsTrue(secondBot.Hands != null); Assert.IsTrue(secondBot.Cash == initialBet); Assert.IsTrue(secondBot.Flag == PlayerState.Play); }
public void ConstructorTest() { // first case var firstBot = new WinningStrategyBot(); Assert.IsFalse(firstBot.IsLeave()); Assert.IsTrue(firstBot.GamePlayed == 0); Assert.IsTrue(firstBot.Hands != null); Assert.IsTrue(firstBot.Cash == 1000); Assert.IsTrue(firstBot.Flag == Player.PlayerState.Play); // second case var secondBot = new HiOptIIStrategyBot(); Assert.IsTrue(secondBot.GamePlayed == 0); Assert.IsFalse(secondBot.IsLeave()); Assert.IsTrue(secondBot.Hands != null); Assert.IsTrue(secondBot.Cash == 1000); Assert.IsTrue(secondBot.Flag == Player.PlayerState.Play); }