public void TestReadAndWriteOfComplexOptionToANonExistentFile()
 {
     var vshelper = new VsPropertiesHelper(null) { ApplicationDataUserSettingsFile = FileName };
     vshelper.WriteOptionInApplicationData("key", "data", "value=xpto");
     var value = vshelper.ReadOptionFromApplicationData("key", "data");
     Assert.AreEqual("value=xpto", value);
 }
        public void TestReadAndWriteOfOptionReplaceValueInFile()
        {
            var vshelper = new VsPropertiesHelper(null) { ApplicationDataUserSettingsFile = FileName };
            vshelper.WriteOptionInApplicationData("key", "data", "value");
            var value = vshelper.ReadOptionFromApplicationData("key", "data");
            Assert.AreEqual("value", value);

            vshelper.WriteOptionInApplicationData("key 1", "data", string.Empty);
            Assert.AreEqual(string.Empty, vshelper.ReadOptionFromApplicationData("key 1", "data"));

            vshelper.WriteOptionInApplicationData("key 1", "data", "value3");
            Assert.AreEqual("value3", vshelper.ReadOptionFromApplicationData("key 1", "data"));
        }