Esempio n. 1
0
 public void SetUp()
 {
     parent = new ThreeStateNode("parent");
     child1 = new ThreeStateNode("child1");
     child2 = new ThreeStateNode("child2");
     parent.Nodes.Add(child1);
     parent.Nodes.Add(child2);
 }
Esempio n. 2
0
        protected override bool ChildShouldBeChecked(ThreeStateNode child, CheckState checkState)
        {
            if (checkState != CheckState.Checked)
            {
                return(true);
            }

            var testDataNode = child as TestDataNode;

            if (testDataNode == null)
            {
                return(true);
            }

            if (testDataNode.IsIgnored || testDataNode.IsPending ||
                testDataNode.IsExplicit)
            {
                return(false);
            }

            return(true);
        }