コード例 #1
0
ファイル: GameOfLifeTests.cs プロジェクト: fschwiet/CodeKatas
 public void then_center_dies()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(0, nextworld[1, 1]);
 }
コード例 #2
0
ファイル: GameOfLifeTests.cs プロジェクト: fschwiet/CodeKatas
 public void then_right_top_stays_dead()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(0, nextworld[2, 0]);
 }
コード例 #3
0
ファイル: GameOfLifeTests.cs プロジェクト: fschwiet/CodeKatas
 public void then_corner_becomes_alive()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(1, nextworld[2, 0]);
 }
コード例 #4
0
ファイル: GameOfLifeTests.cs プロジェクト: fschwiet/CodeKatas
 public void then_center_top_becomes_alive()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(1, nextworld[0, 1]);
 }
コード例 #5
0
ファイル: GameOfLifeTests.cs プロジェクト: fschwiet/CodeKatas
 public void then_center_stays_alive()
 {
     int[,] nextworld = GOL.Spin(world);
     Assert.AreEqual(1, nextworld[1, 1]);
 }