public void test_duplicated_keys_are_concatenated_with_different_string() { var parser = new ConcatenateDuplicatedKeysIniDataParser(); parser.Configuration.ConcatenateSeparator = "+"; parser.Configuration.AllowDuplicateSections = true; var inidata = parser.Parse(iniFileStr); Assert.That(inidata["MySection"]["File"] == "a.txt+b.txt+c.txt+d.txt"); }
public void test_duplicated_keys_are_concatenated_in_same_section() { var parser = new ConcatenateDuplicatedKeysIniDataParser(); parser.Configuration.AllowDuplicateSections = true; var iniData = parser.Parse(iniFileStr); Assert.That(iniData["MySection"]["File"] == "a.txt;b.txt;c.txt;d.txt"); }