コード例 #1
0
        public void CreateInstance_ClassWithConstraintGenericMethod_HasSameBehavior()
        {
            var handler = ProxyTestHandlers.WriteMethodAndInvokeBaseHandler;
            var proxy   = new DirectProxyFactory <ListCreator <object> >(handler).CreateInstance();

            Assert.IsNotNull(proxy.Create <List <object> >());
        }
コード例 #2
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));
        }