コード例 #1
0
ファイル: FrostSim.cs プロジェクト: Teeohbee/code-dojos
 public Neighbourhood(Cell cell, Cell cell1, Cell cell2, Cell cell3)
 {
     Cells = new List<Cell> {cell, cell1, cell2, cell3};
 }
コード例 #2
0
ファイル: FrostSim.cs プロジェクト: Teeohbee/code-dojos
 public void NeighbourhoodsContainFourCells()
 {
     var cell = new Cell();
     var neighbourhood = new Neighbourhood(cell, cell, cell, cell);
     Assert.AreEqual(4, neighbourhood.Cells.Count);
 }
コード例 #3
0
ファイル: FrostSim.cs プロジェクト: Teeohbee/code-dojos
 public void NeighbourhoodsContainFourCellsInAGrid()
 {
     var cell = new Cell();
     var neighbourhood = new Neighbourhood(cell, cell, cell, cell);
 }
コード例 #4
0
ファイル: FrostSim.cs プロジェクト: Teeohbee/code-dojos
 public void CellsHaveAStatus()
 {
     var cell = new Cell();
     Assert.AreEqual("v", cell.Status);
 }