public void AddRange_appends_elements_by_type() { var root = new DomDocument().AppendElement("root"); root.AddRange( "text", 200, root.OwnerDocument.CreateElement("h"), root.OwnerDocument.CreateAttribute("l", "a"), new [] { "a", "b", "c" }, new List <int> { 200 } ); Assert.Equal("<root l=\"a\">text200<h/>abc200</root>", root.OuterXml); }