public void PathExistsTest() { // Add a row of three hexagons including player PartData partData = new PartData(); Part player = new Part { shape = new GameObject(), type = 1 }; Part hexagon = new Part { shape = new GameObject(), type = 0 }; AxialCoordinate playerCoord = new AxialCoordinate { x = 0, y = 0 }; AxialCoordinate hexCoord = new AxialCoordinate { x = -1, y = 0 }; AxialCoordinate hex2Coord = new AxialCoordinate { x = -2, y = 1 }; partData.addPart(playerCoord, player); partData.addPart(hexCoord, hexagon); partData.addPart(hex2Coord, hexagon); // Find all destroyed parts if middle hexagon hit List <AxialCoordinate> neighbours = partData.findDestroyedPartLocations(hexCoord); // If 2 object destroyed, pass Assert.True(neighbours.Count == 2); }