XmlFileTests SavingAndLoadingLeavesItUnchanged Method Delta Engine Documentation

Namespace: DeltaEngine.Content.Xml.Tests
Assembly: DeltaEngine.Content.Xml.Tests (in DeltaEngine.Content.Xml.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SavingAndLoadingLeavesItUnchanged()
Examples

[Test]
public void SavingAndLoadingLeavesItUnchanged()
{
    XmlData data = CreateTestXmlData();
    var file = new XmlFile(data);
    file.Save("file.xml");
    XmlData loaded = new XmlFile("file.xml").Root;
    Assert.AreEqual(data.ToString(), loaded.ToString());
}
See Also