public void CreateInstance_AbstractClass_GetDefaultResult()
        {
            var handler = ProxyTestHandlers.WriteMethodAndReturnDefaultHandler;
            var proxy   = new DirectProxyFactory <EqualityComparer <object> >(handler).CreateInstance();

            Assert.AreEqual(false, proxy.Equals(0, 0));
        }
        public void CreateInstance_ClassWithGenericMethod_HasSameBehavior()
        {
            var handler = ProxyTestHandlers.WriteMethodAndInvokeBaseHandler;
            var proxy   = new DirectProxyFactory <Creator>(handler).CreateInstance();

            Assert.IsNotNull(proxy.Create <object>());
            Assert.IsTrue(proxy.Equals(proxy));
        }