Esempio n. 1
0
        public void LoadAndCreateXmlTest()
        {
            var xml = new XmlTree(new MemoryStream(TestResource.AndroidManifest));
            var doc = xml.AsXml();

            var xml2 = new XmlTree(doc);
            var stream = new MemoryStream();
            var writer = new ResWriter(stream);
            xml2.Write(writer);

            stream.Position = 0;
            var xml3 = new XmlTree(stream);
            var doc3 = xml3.AsXml();

            Assert.AreEqual(doc.ToString(), doc3.ToString());
        }
Esempio n. 2
0
 /// <summary>
 /// Load the text to display
 /// </summary>
 protected override string LoadText()
 {
     var raw = Load();
     var xmlTree = new XmlTree(new MemoryStream(raw));
     return xmlTree.AsXml().ToString();
 }
Esempio n. 3
0
        public void LoadXmlTest()
        {
            var xml = new XmlTree(new MemoryStream(TestResource.AndroidManifest));

            var doc = xml.AsXml();
        }