Example #1
0
 public void DeadCellWithoutThreeLiveNeighborsBecomesLive()
 {
     GameBoard.GetNewCellState(false, 2).Should().BeFalse();
     GameBoard.GetNewCellState(false, 4).Should().BeFalse();
 }
Example #2
0
 public void DeadCellWithThreeLiveNeighborsBecomesLive()
 {
     GameBoard.GetNewCellState(false, 3).Should().BeTrue();
 }
Example #3
0
 public void LiveCellWithTwoOrThreeLiveNeighborsLives()
 {
     GameBoard.GetNewCellState(true, 2).Should().BeTrue();
     GameBoard.GetNewCellState(true, 3).Should().BeTrue();
 }
Example #4
0
 public void LiveCellWithMoreThanThreeLiveNeighborsDies()
 {
     GameBoard.GetNewCellState(true, 4).Should().BeFalse();
 }
Example #5
0
 public void LiveCellWithFewerThanTwoLiveNeighborsDies()
 {
     GameBoard.GetNewCellState(true, 0).Should().BeFalse();
     GameBoard.GetNewCellState(true, 1).Should().BeFalse();
 }