Exemple #1
0
        public void Copy()
        {
            _element.Add("A", new PListString("Foo"));
            _element.Add("B", new PListInteger(10));
            var copy = _element.Copy() as PListDictionary;

            Assert.AreNotSame(copy, _element);
            Assert.AreEqual(_element.Count, copy.Count);

            foreach (var kvp in _element)
            {
                Assert.AreNotSame(kvp.Value, copy[kvp.Key]);
            }
        }