public void SaveConfig(string subPath) { if (ConfigName == null) { return; } ConfigSaver.Save(elementCounters, subPath, ConfigName.text); }
public void Test_Save() { string path = TestUtilities.GetTestingPath(this) + Path.DirectorySeparatorChar + "TestConfig.xml"; MockAppConfig config = new MockAppConfig(); config.FilePath = path; ConfigSaver saver = new ConfigSaver(); saver.Save(config); Assert.IsTrue(File.Exists(path), "The configuration file wasn't found."); }