public void TestDefaultSaving() { var testSettings = new BaseTestSettings(); Assert.AreEqual("Initial String Property Value", testSettings.StringProperty); Assert.AreEqual(0.0, testSettings.Geo.Latitude); Assert.AreEqual(0.0, testSettings.Geo.Longitude); testSettings.Save("DefaultTestSettings.xml"); Assert.IsTrue(File.Exists("DefaultTestSettings.xml")); }
public void TestModifiedSaving() { var testSettings = new BaseTestSettings(); testSettings.StringProperty = "Modified string property value"; Assert.AreEqual("Modified string property value", testSettings.StringProperty); testSettings.Geo = new Geo(43, -71); Assert.AreEqual(43f, testSettings.Geo.Latitude); Assert.AreEqual(-71f, testSettings.Geo.Longitude); testSettings.Save("ModifiedTestSettings.xml"); Assert.IsTrue(File.Exists("ModifiedTestSettings.xml")); }