示例#1
0
        public void GridRow_Cells_Count_Equals_Grid_Width()
        {
            Grid <ushort> grid = new Grid <ushort>(GRID_WIDTH, GRID_HEIGHT);
            int           row  = 8;

            GridRow <ushort> gridRow = new GridRow <ushort>(grid, row);

            int cellCount = gridRow.Count();
            int gridWidth = grid.Width;

            Assert.AreEqual(cellCount, gridWidth);
        }