コード例 #1
0
 public void CreateAndVerifyIProxyInterfaceImplementation()
 {
     this.Initialize();
     var simple = new SimpleClass().CreateProxy(
         new ProxyContext(AssemblyBuilderAccess.RunAndSave, true, false), this);
     Assert.True(typeof(IProxy<SimpleClass>).IsAssignableFrom(simple.GetType()));
     Assert.NotNull((simple as IProxy<SimpleClass>).Target);
 }