コード例 #1
0
 public void TestGetIndexByRowAndColumn(int row, int column, int expectedIndex)
 {
     GridMath.GetIndexByRowAndColumnIndices(row, column).Should().Be(expectedIndex);
 }
コード例 #2
0
 public Cell GetCellByIndices(int rowIndex, int columnIndex)
 {
     return(cells[GridMath.GetIndexByRowAndColumnIndices(rowIndex, columnIndex)]);
 }