public void Can_clone_DtoWithValueArray()
        {
            var expected = new DtoWithValueArray()
            {
                Values = new[] { 1, 2, 3 }
            };
            var clone = Incubator.Clone(expected);

            Assert.AreNotSame(expected, clone);
            Assert.AreNotSame(expected.Values, clone.Values);
            Assert.AreEqual(expected.Values, clone.Values);
        }
Exemple #2
0
        public void Can_clone_DtoWithValueArray()
        {
            var expected = new DtoWithValueArray() { Values = new[] { 1, 2, 3 } };
            var clone = Incubator.Clone(expected);

            Assert.AreNotSame(expected, clone);
            Assert.AreNotSame(expected.Values, clone.Values);
            Assert.AreEqual(expected.Values, clone.Values);
        }