public void RemoveInvalidAssembliesInfo() { XmlDocument doc = new System.Xml.XmlDocument(); doc.LoadXml(XmlConsts.internalEllXml); var type = GetType(typeof(mdoc.Test2.InternalEIICalss)); var docEnum = new DocumentationEnumerator(); var delList = DocUtils.RemoveInvalidAssemblyInfo(doc.DocumentElement, false, "Type"); Assert.IsTrue(delList.Count == 1); foreach (DocsNodeInfo info in docEnum.GetDocumentationMembers(doc, type, FrameworkTypeEntry.Empty)) { delList.AddRange(DocUtils.RemoveInvalidAssemblyInfo(info.Node, false, "Member")); } Assert.IsTrue(delList.Count == 2); ///Note : (The following operation will not be carried out, just prompt) // foreach (var delitem in delList) // delitem.ParentNode.RemoveChild(child); }