public void CanProxyTypesWithMethodsOnlyDifferentByGenericArguments() { ProxyGenerator generator = new ProxyGenerator(); IMyService target1 = (IMyService)generator.CreateInterfaceProxyWithTarget( typeof(IMyService), new MyServiceImpl(), new StandardInterceptor()); Assert.IsNotNull(target1.CreateSomething <int>("aa")); IMyService target2 = (IMyService)generator.CreateClassProxy( typeof(MyServiceImpl), new StandardInterceptor()); Assert.IsNotNull(target2.CreateSomething <int>("aa")); }