示例#1
0
 public void FindNeighbours_OnBorder_ReachesOver() =>
 NeighbourFinderBase.FindNeighbours_OnBorder(new OpenNeighbourFinder <StandardCell, StandardCellGrid>(), res => res.Count(c => c.IsAlive) == 2);
示例#2
0
 public void FindNeighbours_OnBorder_DoesNotReach() =>
 NeighbourFinderBase.FindNeighbours_OnBorder(new ClosedNeighbourFinder <StandardCell, StandardCellGrid>(), res => !res.Any(c => c.IsAlive));
示例#3
0
 public void FindNeighbours_NoBorders_TwoAlive() =>
 NeighbourFinderBase.FindNeighbours_NoBorders_TwoAlive(new OpenNeighbourFinder <StandardCell, StandardCellGrid>());
示例#4
0
 public void FindNeighbours_NoBorders_NoneAlive() =>
 NeighbourFinderBase.FindNeighbours_NoBorders_NoneAlive(new ClosedNeighbourFinder <StandardCell, StandardCellGrid>());