public void Detach() { TreeNode newNode = mPresentation.TreeNodeFactory.Create(); mRootNode.AppendChild(newNode); newNode.Detach(); Assert.IsNull(newNode.Parent, "Parent of detached child must be null"); int index = mRootNode.Children.IndexOf(newNode); Assert.That(index == -1); }