示例#1
0
        public void GetNearestPoint3Test()
        {
            var points = AStarPathSearch.GetNearestPoints(_targetPosition, _closeMap1, 2);

            Assert.NotNull(points);
            Assert.AreEqual(5, points.Count);
        }
示例#2
0
        public void GetNearestPoint1Test()
        {
            var points = AStarPathSearch.GetNearestPoints(_targetPosition, _openMap, 1);

            Assert.NotNull(points);
            Assert.AreEqual(3, points.Count);
        }