public void Serialize_CustomCopier() { var original = new ClassWithCustomCopier() { IntProperty = 5, StringProperty = "Hello" }; var copy = SerializationManager.DeepCopy(original); Assert.Equal(1, ClassWithCustomCopier.CopyCounter); //Custom copier was not called }
public void Serialize_CustomCopier() { var original = new ClassWithCustomCopier() {IntProperty = 5, StringProperty = "Hello"}; var copy = SerializationManager.DeepCopy(original); Assert.Equal(1, ClassWithCustomCopier.CopyCounter); //Custom copier was not called }