Ejemplo n.º 1
0
        public void TestMergeConfig()
        {
            var toMerge = new Config();

            toMerge.Lines.Add(new ConfigLine {
                Key = "key", Value = "New Value", Section = "section"
            });

            config.Lines.Add(new ConfigLine {
                Key = "key", Value = "Old Value", Section = "section"
            });

            var result = config.Merge(toMerge);

            Assert.AreEqual(1, result.Lines.Count);
            Assert.AreEqual("New Value", result.Lines[0].Value);
        }