Example #1
0
        public void CreateGridColumnsAndRowsAndTurnOnCenter()
        {
            int x    = 2;
            int y    = 2;
            var grid = new LightGrid(5, 5);

            var centerLight = grid.GetLight(x, y);

            grid.ToggleLight(x, y);

            Assert.Equal(LightState.On, centerLight.State);
        }