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