コード例 #1
0
        public void GenerateEmptyBoard_ShouldCreateWithSize()
        {
            //Arrange
            int arrLength          = 5;
            int expectedMatrixSize = arrLength * arrLength;

            //Act
            BoardGame boardgame = new BoardGame();

            string[,] actualMatrix = boardgame.GenerateEmptyBoard(5);
            int actualMatrixSize = actualMatrix.Length;

            //Assert
            Assert.Equal(expectedMatrixSize, actualMatrixSize);
        }