public bool TestDetermineIfCellLives(bool isAlive, int liveNeighbors) { CartesianGridCell cell = new CartesianGridCell(0, 0, isAlive); CartesianGridCellLogic logic = new CartesianGridCellLogic(); return logic.DetermineIfCellLives(cell, liveNeighbors); }
public bool TestIsNeighborAlive(int x, int y) { CartesianGridCell gridCell = new CartesianGridCell(1, 1); CartesianGrid grid = new CartesianGrid(FourNeighborsGrid); CartesianGridLogic gridLogic = new CartesianGridLogic(grid); return gridLogic.IsNeighborAlive(gridCell, x, y); }