public void KeepsSystemId() { DOMSource d = new DOMSource(doc); d.SystemId = "foo"; NormalizedSource s = new NormalizedSource(d); Assert.AreEqual("foo", s.SystemId); }
public void NormalizesNode() { XmlElement control = doc.CreateElement("e"); control.AppendChild(doc.CreateTextNode("a")); control.AppendChild(doc.CreateTextNode("")); control.AppendChild(doc.CreateTextNode("b")); NormalizedSource s = new NormalizedSource(control); Assert.AreEqual(1, s.Node.ChildNodes.Count); Assert.AreEqual("ab", s.Node.FirstChild.Value); }