public void Returns_proxy_target_instead_of_self()
        {
            var target = new CastleTests.DynamicProxy.Tests.Classes.EmptyClass();
            var proxy  = generator.CreateClassProxyWithTarget(target);
            var result = (CastleTests.DynamicProxy.Tests.Classes.EmptyClass)((IProxyTargetAccessor)proxy).DynProxyGetTarget();

            Assert.AreEqual(target, result);
        }
		public void Returns_proxy_target_instead_of_self()
		{
			var target = new CastleTests.DynamicProxy.Tests.Classes.EmptyClass();
			var proxy = generator.CreateClassProxyWithTarget(target);
			var result = (CastleTests.DynamicProxy.Tests.Classes.EmptyClass)((IProxyTargetAccessor)proxy).DynProxyGetTarget();
			Assert.AreEqual(target, result);
		}