public void DivideSidePot() { Assert.That( HoldemGame.DividePot( new int[] { 50, 100, 100, 0, 0, 0, 0, 0, 0, 0 }, new int[] { 0, 1, 2, -1, -1, -1, -1, -1, -1, -1 }), Is.EqualTo(new int[] { 150, 100, 0, 0, 0, 0, 0, 0, 0, 0 })); }
public void DivideSideSplitPot() { // side split pot Assert.That( HoldemGame.DividePot( new int[] { 100, 150, 150, 0, 0, 0, 0, 0, 0, 0 }, new int[] { 0, 0, 1, -1, -1, -1, -1, -1, -1, -1 }), Is.EqualTo(new int[] { 150, 250, 0, 0, 0, 0, 0, 0, 0, 0 })); }
public void DividePot() { // simple Assert.That( HoldemGame.DividePot( new int[] { 100, 100, 0, 0, 0, 0, 0, 0, 0, 0 }, new int[] { 0, 1, -1, -1, -1, -1, -1, -1, -1, -1 }), Is.EqualTo(new int[] { 200, 0, 0, 0, 0, 0, 0, 0, 0, 0 })); // split Assert.That( HoldemGame.DividePot( new int[] { 100, 100, 0, 0, 0, 0, 0, 0, 0, 0 }, new int[] { 0, 0, -1, -1, -1, -1, -1, -1, -1, -1 }), Is.EqualTo(new int[] { 100, 100, 0, 0, 0, 0, 0, 0, 0, 0 })); }