Example #1
0
        public void TestTreeRemoveItems()
        {
            Tree tree = new Tree("tree").AddItems("root/1/2/3", "root/2/3/4", "root/3/4/5");

            Assert.AreEqual(tree, tree.RemoveItems("root/2/3/4", "root/3/4/5"));
            Assert.AreEqual(1, tree.SelectedItems().Count);
            Assert.AreEqual("root/1/2/3", tree.SelectedItems()[0]);
        }