Exemplo n.º 1
0
        public void Then_Cell_Will_Be_Alive_In_Next_Generation()
        {
            Cell cell = new Cell(false, 3);

            cell.NextGeneration();
            Assert.IsTrue(cell.IsAlive);
        }
Exemplo n.º 2
0
        public void Then_Cell_Will_Be_Freed()
        {
            Cell cell = new Cell(true, 1);

            cell.NextGeneration();
            Assert.IsFalse(cell.IsAlive);
        }
        public void Then_Cell_Will_Stay_Free()
        {
            Cell cell = new Cell(false, 0);

            cell.NextGeneration();
            Assert.IsFalse(cell.IsAlive);
        }
        public void Then_Cell_Will_Stay_Alive()
        {
            Cell cell = new Cell(true, 2);

            cell.NextGeneration();
            Assert.IsTrue(cell.IsAlive);
        }
 public void Then_Cell_Will_Stay_Alive()
 {
     Cell cell = new Cell(true, 2);
     cell.NextGeneration();
     Assert.IsTrue(cell.IsAlive);
 }
 public void Then_Cell_Will_Be_Freed()
 {
     Cell cell = new Cell(true, 4);
     cell.NextGeneration();
     Assert.IsFalse(cell.IsAlive);
 }
 public void Then_Cell_Will_Stay_Free()
 {
     Cell cell = new Cell(false, 0);
     cell.NextGeneration();
     Assert.IsFalse(cell.IsAlive);
 }
 public void Then_Cell_Will_Be_Alive_In_Next_Generation()
 {
     Cell cell = new Cell(false, 3);
     cell.NextGeneration();
     Assert.IsTrue(cell.IsAlive);
 }