public void TestTotal() { Action[] actions = new Action[] { new Action("Player3", Action.ActionTypes.PostSmallBlind, 1), new Action("Player4", Action.ActionTypes.PostBigBlind, 2), new Action("Player0", Action.ActionTypes.Raise, 4), new Action("Player1", Action.ActionTypes.Fold), new Action("Player2", Action.ActionTypes.Fold), new Action("Player3", Action.ActionTypes.Fold), new Action("Player4", Action.ActionTypes.Raise, 4), new Action("Player0", Action.ActionTypes.Call, 2), new Action("Player4", Action.ActionTypes.Raise, 194, true), new Action("Player0", Action.ActionTypes.Fold) }; potMan.AddAction(3, actions[0]); Assert.True(1 == potMan.Total); potMan.AddAction(4, actions[1]); Assert.True(3 == potMan.Total); potMan.AddAction(0, actions[2]); Assert.True(7 == potMan.Total); potMan.AddAction(1, actions[3]); Assert.True(7 == potMan.Total); potMan.AddAction(2, actions[4]); Assert.True(7 == potMan.Total); potMan.AddAction(3, actions[5]); Assert.True(7 == potMan.Total); potMan.AddAction(4, actions[6]); Assert.True(11 == potMan.Total); potMan.AddAction(0, actions[7]); Assert.True(13 == potMan.Total); potMan.AddAction(4, actions[8]); Assert.True(207 == potMan.Total); potMan.AddAction(0, actions[9]); Assert.True(207 == potMan.Total); }
public void TestTotal() { Action[] actions = new Action[] { new Action("Player3", Action.ActionTypes.PostSmallBlind, 1), new Action("Player4", Action.ActionTypes.PostBigBlind, 2), new Action("Player0", Action.ActionTypes.Raise, 4), new Action("Player1", Action.ActionTypes.Fold), new Action("Player2", Action.ActionTypes.Fold), new Action("Player3", Action.ActionTypes.Fold), new Action("Player4", Action.ActionTypes.Raise, 4), new Action("Player0", Action.ActionTypes.Call, 2), new Action("Player4", Action.ActionTypes.AllIn, 194), new Action("Player0", Action.ActionTypes.Fold) }; potMan.AddAction(actions[0]); Assert.AreEqual(1, potMan.Total); potMan.AddAction(actions[1]); Assert.AreEqual(3, potMan.Total); potMan.AddAction(actions[2]); Assert.AreEqual(7, potMan.Total); potMan.AddAction(actions[3]); Assert.AreEqual(7, potMan.Total); potMan.AddAction(actions[4]); Assert.AreEqual(7, potMan.Total); potMan.AddAction(actions[5]); Assert.AreEqual(7, potMan.Total); potMan.AddAction(actions[6]); Assert.AreEqual(11, potMan.Total); potMan.AddAction(actions[7]); Assert.AreEqual(13, potMan.Total); potMan.AddAction(actions[8]); Assert.AreEqual(207, potMan.Total); potMan.AddAction(actions[9]); Assert.AreEqual(207, potMan.Total); }