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)); }