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