コード例 #1
0
 public void Darwin_GivenSurfaceWithOneLiveCell_ReturnsEmtyCell()
 {
     _simpleSurface.MakeCellAlive(0, 0);
     var result = new Darwin().Evolve(_simpleSurface);
     Assert.AreEqual(_emptySurface, result);
 }
コード例 #2
0
 public void Darwin_GivenOldSurface_ReturnsNewSurface()
 {
     var result = new Darwin();
     Assert.IsInstanceOf<Surface>(result.Evolve(_testedSurface));
 }