public void CreateInstance_ClassWithConstraintGenericMethod_HasSameBehavior() { var handler = ProxyTestHandlers.WriteMethodAndInvokeBaseHandler; var proxy = new DirectProxyFactory <ListCreator <object> >(handler).CreateInstance(); Assert.IsNotNull(proxy.Create <List <object> >()); }
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)); }