public void INI檔案寫入(string section, string key, string expected)
        {
            var before = IniUtil.Read(this._file, section, key);

            IniUtil.Write(this._file, section, key, expected);

            var actual = IniUtil.Read(this._file, section, key);

            Assert.AreEqual(expected, actual);

            // snapshot
            IniUtil.Write(this._file, section, key, before);
        }
        public void INI檔案不存在(string section, string key, string expected)
        {
            var NotExistsFile = @"%Windir%/123.ini";

            Assert.Catch <FileNotFoundException>(() => IniUtil.Read(NotExistsFile, section, key));
        }
        public void 取得INI檔案設定值(string section, string key, string expected)
        {
            var actual = IniUtil.Read(this._file, section, key);

            Assert.AreEqual(expected, actual);
        }