Ejemplo n.º 1
0
        public void TestFollowPath()
        {
            HierarchyObject hierarchyObjectToFind  = new ScriptObject();
            HierarchyObject hierarchyObjectToFind2 = new UIObject();

            HierarchyManager.LoadedHierarchies["test"].AddChild("followPathTest", hierarchyObjectToFind);
            HierarchyManager.LoadedHierarchies["test"].LocalHierarchy["followPathTest"]
            .AddChild("followPathTest2", hierarchyObjectToFind2);
            Assert.AreEqual(hierarchyObjectToFind, HierarchyManager.FollowPath("test/followPathTest"));
            Assert.AreEqual(hierarchyObjectToFind2, HierarchyManager.FollowPath("test/followPathTest/followPathTest2"));
        }
 private static HierarchyObject Creator(EditorData data) => HierarchyManager.FollowPath(data["ReferencePath"]);