public void TestClear() { m_treeViewController.AddMachineNode(TEST_MACHINE_NAME1, false); m_treeViewController.AddServerNode(TEST_MACHINE_NAME1, TEST_SERVER_NAME1); Assert.AreEqual(1, m_treeview.Nodes.Count); Assert.AreEqual(1, m_treeview.Nodes[TEST_MACHINE_NAME1].Nodes.Count); m_treeViewController.Clear(); Assert.AreEqual(0, m_treeview.Nodes.Count); }