public void CloneClassWithReferenceToTypeThatHasCloneReferenceOnlyAttribute() { var ro = new CloneOnlyByReferenceClass(); var source = new ClassWithReferenceToTypeThatHasCloneReferenceOnlyAttribute { Reference = ro }; var clone = source.Clone(); Assert.IsTrue(ReferenceEquals(ro, clone.Reference)); }
public void CloneClassWithReferenceToTypeThatHasCloneReferenceOnlyAttribute() { var ro = new CloneOnlyByReferenceClass(); var source = new ClassWithReferenceToTypeThatHasCloneReferenceOnlyAttribute {Reference = ro}; var clone = source.Clone(); Assert.IsTrue(ReferenceEquals(ro, clone.Reference)); }