public void GenerateNextBoards_UseFlop_NeverGeneratesADeadCard() { for (int i = 0; i < 100; i++) { var flop = BoardGenerator.GenerateFlop(); for (int j = 0; j < 100; j++) { var deadCards = BoardGenerator.GenerateHand(flop); var nextBoards = BoardGenerator.GenerateNextBoards(flop, deadCards); foreach (var board in nextBoards) { Assert.True((deadCards & board) == 0, $"{deadCards}:{board}"); } } } }
public void GenerateNextBoards_UseFlop_GenerateFourCards() { for (int i = 0; i < 100; i++) { var flop = BoardGenerator.GenerateFlop(); for (int j = 0; j < 100; j++) { var deadCards = BoardGenerator.GenerateHand(flop); var nextBoards = BoardGenerator.GenerateNextBoards(flop, deadCards); foreach (var board in nextBoards) { Assert.True( board.ToString().Split(',').Length == 4, $"{deadCards}:{board}"); } } } }