コード例 #1
0
        public void creates_save_path()
        {
            var vars = new SimpleDictionary<string, string>();

            theLoader.Save(vars.Values(), "vars.config");

            Assert.AreEqual("vars.config", theFileSystem.LastSavePath);
        }
コード例 #2
0
        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);
        }