NodeAt() public method

public NodeAt ( int index ) : TreeNode
index int
return TreeNode
Beispiel #1
0
        public void update_icon_two_levels_up()
        {
            var veryTop = new TreeNode(new FixtureLibrary());
            veryTop.Add(top);
            veryTop.Add(new TreeNode(new FixtureLibrary()));

            veryTop.NodeAt(1).Icon = Icon.Success;
            top.NodeAt(3).Icon = Icon.Failed;

            veryTop.Icon.ShouldEqual(Icon.Failed);
        }