예제 #1
0
        public void TestIfAddAsChildAddsTheElementToTheTargetsChildren()
        {
            Panel parent = new Grid();
            UIElement child = new TextBlock();

            child.AddAsChildTo(parent);

            Assert.IsTrue(parent.Children.Contains(child));
        }