public void TreeView_Method_PerformDataBinding () { PokerTreeView tv = new PokerTreeView (); XmlDataSource xmlds = new XmlDataSource (); xmlds.EnableCaching = false; xmlds.Data = xmlDataBind; tv.DataSource = xmlds; Assert.AreEqual (0, tv.Nodes.Count, "BeforePerformDataBinding"); tv.PerformDataBindingBase (); Assert.AreEqual (1, tv.Nodes.Count, "AfterPerformDataBinding-a"); Assert.AreEqual ("Book", tv.Nodes[0].Text, "AfterPerformDataBinding-b"); Assert.AreEqual (2, tv.Nodes[0].ChildNodes.Count, "AfterPerformDataBinding-c"); }