コード例 #1
0
 public void CanSetMyIndex()
 {
     myGame game = new myGame();
     int expected = 1;
     game.setIndex(1);
     Assert.AreEqual(expected, game.getIndex());
 }
コード例 #2
0
 public void TestingTwoOrThreeLiveNeighborsLivesOn()
 {
     myGame game = new myGame();
     Assert.AreEqual(true, game.caseOne(0, 1));
 }
コード例 #3
0
 public void TestingLiveCellWithThreeOrMoreNeighborsDies()
 {
     myGame game = new myGame();
     Assert.AreEqual(true, game.caseOne(1, 2));
 }
コード例 #4
0
 public void TestingLessThanTwoNeighborsDies()
 {
     myGame game = new myGame();
     Assert.AreEqual(false, game.caseOne(0, 0));
 }
コード例 #5
0
 public void TestingDeadCellExactlyThreeLiveNeighborsLives()
 {
     myGame game = new myGame();
     Assert.AreEqual(true, game.caseOne(1, 0));
 }
コード例 #6
0
 public void LivesOnToNextGeneration()
 {
     myGame game = new myGame();
     Assert.AreEqual(true, game.caseOne(1, 1));
 }
コード例 #7
0
 public void CreateAnInstanceOfGameClass()
 {
     myGame game = new myGame();
     Assert.IsNotNull(game);
 }
コード例 #8
0
 public void CaseOneCellTouchesTwoLiveCells()
 {
     myGame game = new myGame();
     Assert.AreEqual(false, game.caseOne(0,0));
 }
コード例 #9
0
 public void CanAccessMyIndex()
 {
     myGame game = new myGame();
     int expected = 0;
     Assert.AreEqual(expected, game.getIndex());
 }