public void Should_strip_empty_attached_properties() { const string tmpl1 = "<Grid><Grid.Parent></Grid.Parent></Grid>"; var e1 = XElement.Parse(tmpl1); var proc = new XamlPostProcessor(); proc.StripEmptyAttachedProperties(e1); Assert.IsTrue(e1.IsEmpty); }