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