コード例 #1
0
ファイル: ExportXmlTest.cs プロジェクト: nvaron/NConfig
        public void ExportXml()
        {
            string xml = File.ReadAllText("Negate.xml");
            IEnumerable<Section> sections = new XmlLoader().ReadXml(xml);
            string exportedXml = new XmlLoader().ToXml(sections);

            Assert.AreEqual(xml.Replace(" ", string.Empty), exportedXml.Replace(" ", string.Empty));
        }