public void Descendant_should_obtain_element_by_name() { var doc = new DomDocument(); var z = doc.AppendElement("x").AppendElement("y").AppendElement("z"); Assert.Same(z, doc.Descendant("z")); }