コード例 #1
0
        public void Should_clone_named_value_and_also_children()
        {
            var source = new NamedContentData
            {
                ["field1"] = new ContentFieldData(),
                ["field2"] = new ContentFieldData()
            };

            var clone = source.Clone();

            Assert.NotSame(source, clone);

            foreach (var(key, value) in clone)
            {
                Assert.NotSame(value, source[key]);
            }
        }