public void GetHierarchyName() { var hierarchyRoot = new HierarchyRoot(); var hierarchyName = "GetThisName"; HierarchyManager.AddHierarchy(hierarchyName, hierarchyRoot); Assert.AreEqual(HierarchyManager.GetHierarchyName(hierarchyRoot), hierarchyName); }
public void SetHierarchyName() { var newName = "newName"; HierarchyObject hierarchyObject = HierarchyManager.LoadedHierarchies["test"]; HierarchyManager.SetHierarchyName("test", newName); Assert.IsTrue(HierarchyManager.LoadedHierarchies.ContainsKey(newName)); Assert.AreEqual(HierarchyManager.GetHierarchyName(hierarchyObject), newName); }