public void TreeView_Method_FindNode () { PokerTreeView tv = new PokerTreeView (); XmlDataSource xmlds = new XmlDataSource (); xmlds.EnableCaching = false; xmlds.Data = xmlDataBind; tv.DataSource = xmlds; tv.DataBind (); TreeNode tn = new TreeNode (); Assert.AreEqual (0, tn.ChildNodes.Count, "BeforeFindNode"); tn = tv.FindNode ("Book" + tv.PathSeparator + "Chapter"); Assert.AreEqual ("Chapter", tn.Text, "AfterFindNode1"); Assert.AreEqual (2, tn.ChildNodes.Count, "AfterFindNode2"); Assert.AreEqual ("Section", tn.ChildNodes[0].Text, "AfterFindNode3"); }