public void CountLivingNeighborsWorking() { GameOfLife test = new GameOfLife(3, 3); test.grid[0, 0] = true; test.grid[1, 0] = true; Assert.AreEqual(2, test.CountLivingNeighbors(1, 1)); }
public void BoundarySide() { GameOfLife test1 = new GameOfLife(3, 3); test1.grid[0, 0] = true; test1.grid[0, 1] = true; Assert.AreEqual(1, test1.CountLivingNeighbors(0,0)); }