Exemplo n.º 1
0
        public void GetNeighboursCanGetNeighborsFromEdgeNode()
        {
            //Arrange
            var want = SetupZoneMap.GetNeighborsListForEdgeNode();

            //Act
            var grid = ZoneMap.NewGridFromVector2(new Vector2(3f, 3f));
            var got  = grid.GetNeighbours(grid.MapGrid[2, 2]);

            //Assert
            SetupZoneMap.AssertListGridNodesEqual(want, got);
        }