public void creates_save_path() { var vars = new SimpleDictionary<string, string>(); theLoader.Save(vars.Values(), "vars.config"); Assert.AreEqual("vars.config", theFileSystem.LastSavePath); }
public void creates_save_contents() { var vars = new SimpleDictionary<string, string>(); vars.Set("one", "two"); vars.Set("three", "four five"); theLoader.Save(vars.Values(), "vars.config"); Assert.AreEqual("#var {one} {two}\n#var {three} {four five}\n", theFileSystem.LastSaveContent); }