public void TestIfAddAsChildToThrowsWithNullParent() { Panel nullParent = null; UIElement someElement = new Button(); someElement.AddAsChildTo(nullParent); }