예제 #1
0
        [Test] public void CloneComponent()
        {
            TestComponent source = CreateTestSource <TestComponent>();
            TestComponent target = source.DeepClone();

            TestClone(source, target);
        }
예제 #2
0
        [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);
        }
예제 #3
0
		[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);
		}