예제 #1
0
        public void TestObjectProxyCloneObject()
        {
            ObjectProxy proxy    = new ObjectProxy(typeof(TestClass1));
            TestClass1  instance = new TestClass1(7L, "test");
            TestClass1  other    = (TestClass1)proxy.CloneObject(instance);

            Assert.IsNotNull(other);
            Assert.AreEqual(7L, other.Id);
            Assert.AreEqual("test", other.Name);
        }