Exemplo n.º 1
0
        public void TestsFillingTheCell()
        {
            const int columnIndex = 2;
            const int rowIndex    = 2;
            const int assetIndex  = 1;

            var cell = new HexagonMap.Cell()
            {
                columnIndex = columnIndex,
                rowIndex    = rowIndex,
                assetIndex  = assetIndex,
                cellType    = HexagonMap.CellType.Gem,
                position    = _map.CalculateCellPosition(columnIndex, rowIndex),
            };

            Assert.AreEqual(cell, _map.SetCell(columnIndex, rowIndex, HexagonMap.CellType.Gem, 1));
        }