package com.cholling.ygame.controller.model;

import org.junit.Test;

import static org.junit.Assert.assertArrayEquals;

public class MoveDTOTest {

    @Test
    public void testBoardCanBeStoredAndRetrieved() {
        int[][] board = {{0,1,2},{0,0},{1}};
        MoveDTO moveDTO = new MoveDTO();

        moveDTO.setBoard(board);
        int[][] newBoard = moveDTO.getBoard();
        for (int i = 0; i < board.length; i++) {
            assertArrayEquals(board[i], newBoard[i]);
        }
    }
}
