public void TestIfAddAsChildAddsTheElementToTheTargetsChildren() { Panel parent = new Grid(); UIElement child = new TextBlock(); child.AddAsChildTo(parent); Assert.IsTrue(parent.Children.Contains(child)); }