Exemple #1
0
 [Test] public void DeepClone()
 => CloneUtil.DeepClone(new Eradicator());
Exemple #2
0
 [Test] public void DeepCloneThrows()
 => Assert.Throws <SerializationException>(
     () => CloneUtil.DeepClone(new NotSerializable()));
Exemple #3
0
 T Clone() => (proto is Clonable <T> src)
 ? src.Clone(state ?? src.Allocate())
 : CloneUtil.DeepClone(proto);