public void TestBrightnessToggle() { var grid = new FireHazard.BrightnessGrid(1000, 1000); Assert.Equal(0, grid.TotalBrightness); grid = grid .Toggle(new Point(0, 0), new Point(999, 999)); Assert.Equal(2000000, grid.TotalBrightness); }
public void TestBrightnessTurnOn() { var grid = new FireHazard.BrightnessGrid(1000, 1000); Assert.Equal(0, grid.TotalBrightness); grid = grid .TurnOn(new Point(0, 0), new Point(0, 0)); Assert.Equal(1, grid.TotalBrightness); }