コード例 #1
0
ファイル: ShallowCopyTest.cs プロジェクト: linven/TypeLess
        public void ObjectPropertiesAreNotCopied()
        {
            var c = new ClassWithObjectProperties();

            c.OtherObj = new ClassWithFields();

            var newC = c.ShallowCopy();

            Assert.Null(newC.OtherObj);
        }
コード例 #2
0
ファイル: ShallowCopyTest.cs プロジェクト: jansater/TypeLess
 public void ObjectPropertiesAreNotCopied()
 {
     var c = new ClassWithObjectProperties();
     c.OtherObj = new ClassWithFields();
     
     var newC = c.ShallowCopy();
     Assert.Null(newC.OtherObj);
 }