public void test_insert_child_at_first_child()
        {
            PropertyTree pt       = LoadTree("alpha-list.xml");
            Property     property = new Property("p");

            Assert.Equal("alpha1", pt.Children[0].Name);
            pt.InsertChildAt(0, property);
            Assert.Same(property, pt.Children[0]);
            Assert.Equal(0, property.Position);
        }
        public void test_insert_child_at_nominal()
        {
            PropertyTree pt       = LoadTree("alpha-list.xml");
            Property     property = new Property("p");

            Assert.Equal("alpha2", pt.Children[1].Name);
            pt.InsertChildAt(1, property);
            Assert.Equal("alpha2", pt.Children[2].Name);
            Assert.Same(property, pt.Children[1]);
            Assert.Equal(1, property.Position);
        }
        public void test_insert_child_at_last_child()
        {
            PropertyTree pt       = LoadTree("alpha-list.xml");
            Property     property = new Property("o");
            int          count    = pt.Children.Count;

            Assert.Equal("alpha5", pt.Children[count - 1].Name);
            pt.InsertChildAt(count, property);

            Assert.Same(property, pt.Children[count]);
            Assert.Equal(count, property.Position);
        }