public void BuildActorPath() { var target = Vector.Create(5, 5); var first = LocationCandiate.Create( target, target + (Directions.West * 2), Maybe <LocationCandiate> .None); var second = LocationCandiate.Create( target, target + Directions.West, first.ToSome()); var final = LocationCandiate.Create( target, target, second.ToSome()); var result = RouteFinder.BuildActorPath(final); Assert.AreEqual(target, result.End); AssertPath( new [] { target + Directions.West, target }, result.ToSome()); }