public void CanSaveMultipleValuesForSameKeyInSections() { // create test data { ConfigFile configFile = new ConfigFile(GetConfigFileName()); configFile.AddValue("remote.origin.fetch", "+mypath"); configFile.AddValue("remote.origin.fetch", "+myotherpath"); configFile.Save(); } // verify { ConfigFile configFile = new ConfigFile(GetConfigFileName()); IList<string> values = configFile.GetValues("remote.origin.fetch"); Assert.IsTrue(values.SingleOrDefault(x => x == "+mypath") != null); Assert.IsTrue(values.SingleOrDefault(x => x == "+myotherpath") != null); } }