public void RemoveWaypointCurrent_Sets_next_point_as_current() { var secondValue = navMesh.WaypointList.First.Next; navMesh.RemoveWaypointCurrent(); Assert.AreEqual(secondValue.Value, navMesh.CurrentWaypoint.Value); }
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); }
public void RemoveWaypointCurrent_On_empty_navmesh_throws_exception() { emptyNavMesh.RemoveWaypointCurrent(); }