public void UpdateTest() { var node = new CustomTreeNode(); customTree.SelectedNode = node; customTree.Update(node); Assert.DoesNotThrow(delegate { var id = node.Id; }); // because update must call init for root node! Assert.AreEqual(null, customTree.SelectedNode); // update should clear selection }
private void Button_Click_2(object sender, RoutedEventArgs e) { var treeType = new NewLineCustomTreeTypeReverse(drawer); tree = new CustomTree(treeType); tree.Update(rootNode); }
private void Button_Click(object sender, RoutedEventArgs e) { var treeType = new DefaultCustomTreeType(drawer); tree = new CustomTree(treeType); tree.Update(rootNode); }