Beispiel #1
0
 public void then_center_dies()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(0, nextworld[1, 1]);
 }
Beispiel #2
0
 public void then_right_top_stays_dead()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(0, nextworld[2, 0]);
 }
Beispiel #3
0
 public void then_corner_becomes_alive()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(1, nextworld[2, 0]);
 }
Beispiel #4
0
 public void then_center_top_becomes_alive()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(1, nextworld[0, 1]);
 }
Beispiel #5
0
 public void then_center_stays_alive()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(1, nextworld[1, 1]);
 }