[Test] public void CloneComponent() { TestComponent source = CreateTestSource <TestComponent>(); TestComponent target = source.DeepClone(); TestClone(source, target); }
[Test] public void CloneComponent() { Random rnd = new Random(); TestComponent source = new TestComponent(rnd); TestComponent target = source.DeepClone(); Assert.AreEqual(source, target); Assert.AreNotSame(source, target); Assert.AreNotSame(source.TestReferenceList, target.TestReferenceList); }