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

            c.SetValue(new ClassWithFields());

            var newC = c.ShallowCopy();

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

            var newC = c.ShallowCopy();
            Assert.Null(newC.GetValue());
        }