コード例 #1
0
		public void When_UnregisterNodeTree_Then_all_child_nodes_are_unregistered()
		{
			var view = new TestProjectFolderView();
			var root = new ProjectFolderView.DirectoryNode("root");
			var childDirNode = new ProjectFolderView.DirectoryNode("childDir");
			root.Nodes.Add(childDirNode);
			root.Nodes.Add(new ProjectFolderView.ResourceNode("resourceNode"));

			view.TestRegisterNodeTree(root);
			view.TestUnregisterTreeNode(root);

			Assert.AreEqual(0, view.PathIdToNode.Count);
		}
コード例 #2
0
        public void When_UnregisterNodeTree_Then_all_child_nodes_are_unregistered()
        {
            var view         = new TestProjectFolderView();
            var root         = new ProjectFolderView.DirectoryNode("root");
            var childDirNode = new ProjectFolderView.DirectoryNode("childDir");

            root.Nodes.Add(childDirNode);
            root.Nodes.Add(new ProjectFolderView.ResourceNode("resourceNode"));

            view.TestRegisterNodeTree(root);
            view.TestUnregisterTreeNode(root);

            Assert.AreEqual(0, view.PathIdToNode.Count);
        }