Add() public method

public Add ( TreeNode node ) : void
node TreeNode
return void
Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public void SetUp()
 {
     top = new TreeNode(new FixtureLibrary());
     top.Add(new TreeNode(new FixtureLibrary()));
     top.Add(new TreeNode(new FixtureLibrary()));
     top.Add(new TreeNode(new FixtureLibrary()));
     top.Add(new TreeNode(new FixtureLibrary()));
     top.Add(new TreeNode(new FixtureLibrary()));
 }