예제 #1
0
        public void CloningDummyObjectWithAutoProperties()
        {
            var d = new Dummy2 { Property1 = "Value of V1", Property2 = "Value of v2" };
            var dCloned = d.ShallowClone();

            d.Property1.Should().Be(dCloned.Property1);
            d.Property2.Should().Be(dCloned.Property2);
        }
예제 #2
0
        public void CloningDummyObjectWithAutoProperties()
        {
            var d = new Dummy2 {
                Property1 = "Value of V1", Property2 = "Value of v2"
            };
            var dCloned = d.ShallowClone();

            d.Property1.Should().Be(dCloned.Property1);
            d.Property2.Should().Be(dCloned.Property2);
        }