public void ShouldRemoveFromVisualTreeInBorder()
        {
            var item = new TextBlock();
            var parent = new Border { Child = item };

            item.Parent.ShouldBe(parent);
            item.RemoveFromVisualTree();
            item.Parent.ShouldBe(null);
        }
        public void ShouldRemoveFromVisualTreeInGrid()
        {
            var item = new TextBlock();
            var parent = new Grid();
            parent.Children.Add(item);

            item.Parent.ShouldBe(parent);
            item.RemoveFromVisualTree();
            item.Parent.ShouldBe(null);
        }