Пример #1
0
        public void RemoveWaypointCurrent_Sets_next_point_as_current()
        {
            var secondValue = navMesh.WaypointList.First.Next;

            navMesh.RemoveWaypointCurrent();
            Assert.AreEqual(secondValue.Value, navMesh.CurrentWaypoint.Value);
        }
Пример #2
0
        public void RemoveWaypointCurrent_Leaves_current_as_null_when_removing_last_remaining_element()
        {
            var navMesh = new NavMesh2D(new List <Vector2> {
                new Vector2(0, 0)
            });

            navMesh.RemoveWaypointCurrent();
            Assert.AreEqual(null, navMesh.CurrentWaypoint);
        }
Пример #3
0
 public void RemoveWaypointCurrent_On_empty_navmesh_throws_exception()
 {
     emptyNavMesh.RemoveWaypointCurrent();
 }