public void GetNodesWithState_Unchecked()
{
TreeNode[] list = m_treeView.GetNodesWithState(TriStateTreeView.CheckState.Checked);
Assert.IsEmpty(list);
// Check all nodes.
m_treeView.SetChecked(m_aNode, TriStateTreeView.CheckState.Checked);
list = m_treeView.GetNodesWithState(TriStateTreeView.CheckState.Unchecked);
Assert.IsEmpty(list);
m_treeView.SetChecked(m_c1Node, TriStateTreeView.CheckState.Unchecked);
list = m_treeView.GetNodesWithState(TriStateTreeView.CheckState.Unchecked);
Assert.AreEqual(2, list.Length);
Assert.AreEqual(m_c1Node, list[0]);
Assert.AreEqual(m_dNode, list[1]);
}