public void Save_SavesDataToFile() { string path = "TestFiles\\gpxdocument-save-test.gpx"; File.Delete(path); var target = GpxDocument.Load("../../src/Tests.SpatialLite.Gps/Data/Gpx/gpx-real-file.gpx"); target.Save(path); var original = XDocument.Load("../../src/Tests.SpatialLite.Gps/Data/Gpx/gpx-real-file.gpx"); var saved = XDocument.Load(path); Assert.True(XDocumentExtensions.DeepEqualsWithNormalization(original, saved, null)); }