private void CheckAlignment(List <AnchorPose> anchorPoses, List <AnchorEdge> anchorEdges, Pose movement) { Pose spongyHead; Plugin plugin = WorldLockingManager.GetInstance().Plugin; for (int k = 0; k < anchorPoses.Count; ++k) { spongyHead = anchorPoses[k].pose; plugin.ClearSpongyAnchors(); plugin.Step_Init(spongyHead); plugin.AddSpongyAnchors(anchorPoses); plugin.SetMostSignificantSpongyAnchorId(anchorPoses[k].anchorId); plugin.AddSpongyEdges(anchorEdges); plugin.Step_Finish(); var adjustment = plugin.GetAlignment(); Assert.IsTrue(adjustment == movement); } }