Beispiel #1
0
        public void GetHierarchyName()
        {
            var hierarchyRoot = new HierarchyRoot();
            var hierarchyName = "GetThisName";

            HierarchyManager.AddHierarchy(hierarchyName, hierarchyRoot);
            Assert.AreEqual(HierarchyManager.GetHierarchyName(hierarchyRoot), hierarchyName);
        }
Beispiel #2
0
        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);
        }