public void DeadCell_With3LiveNeighbours_IsBorn()
 {
     SetupNeighbourMockReturnValue(3);
     BasicTwoDimensionalEvolutionRule evolutionrule = new BasicTwoDimensionalEvolutionRule(mockneighbourrule.Object);
     Cell cell = evolutionrule.EvolveCell(deadcell);
     Assert.AreEqual(cell.IsAlive, true);
 }
 public void DeadCell_WithGreaterThan3LiveNeighbours_RemainsDead()
 {
     SetupNeighbourMockReturnValue(4);
     BasicTwoDimensionalEvolutionRule evolutionrule = new BasicTwoDimensionalEvolutionRule(mockneighbourrule.Object);
     Cell cell = evolutionrule.EvolveCell(deadcell);
     Assert.AreEqual(cell.IsAlive, false);
 }
 public void LiveCell_With2LiveNeighbours_Survives()
 {
     SetupNeighbourMockReturnValue(2);
     BasicTwoDimensionalEvolutionRule evolutionrule = new BasicTwoDimensionalEvolutionRule(mockneighbourrule.Object);
     Cell cell = evolutionrule.EvolveCell(alivecell);
     Assert.AreEqual(cell.IsAlive, true);
 }
 public void LiveCell_WithMoreThan3LiveNeighbours_Dies()
 {
     SetupNeighbourMockReturnValue(4);
     BasicTwoDimensionalEvolutionRule evolutionrule = new BasicTwoDimensionalEvolutionRule(mockneighbourrule.Object);
     Cell cell = evolutionrule.EvolveCell(alivecell);
     Assert.AreEqual(cell.IsAlive, false);
 }