public void TestExport()
 {
     const string name = "RecycleBin.DynamicProxy.Proxy";
      const string dll = name + ".dll";
      try
      {
     Assert.That(File.Exists(dll), Is.False);
     var builder = new DynamicProxyBuilder(name);
     builder.CreateProxyType(typeof(IPerson), typeof(Person));
     builder.Export();
     Assert.That(File.Exists(dll), Is.True);
      }
      finally
      {
     try
     {
        File.Delete(dll);
     }
     catch (FileNotFoundException)
     {
     }
      }
 }
 public void TestCreateTypeWithProxyInterfaceAttribute()
 {
     var builder = new DynamicProxyBuilder("RecycleBin.DynamicProxy.Proxy");
      var proxyType = builder.CreateProxyType(typeof(IProxyRecordable), typeof(TextWriter));
      Assert.That(typeof(IRecordable).IsAssignableFrom(proxyType), Is.True);
 }