public void GetNewBoard_ShouldReturnBoardWithAllOpenColumns() { var board = BitBoardHelpers.GetNewBoard(); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 0)); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 1)); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 2)); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 3)); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 4)); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 5)); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, 6)); }
public void BitBoardMove_ShouldReturnOpenColumn_GivenFiveMovesInSameColumn(int column) { var board = BitBoardHelpers.GetNewBoard(); board = BitBoardHelpers.BitBoardMove(in board, column, DiscColor.Red); board = BitBoardHelpers.BitBoardMove(in board, column, DiscColor.Red); board = BitBoardHelpers.BitBoardMove(in board, column, DiscColor.Red); board = BitBoardHelpers.BitBoardMove(in board, column, DiscColor.Red); board = BitBoardHelpers.BitBoardMove(in board, column, DiscColor.Red); Assert.IsTrue(BitBoardHelpers.IsColumnOpen(board, column)); }