public void SuccessTest_NoProxyFactory()
        {
            IObjectFactory objectFactory = new XmlConfigurationObjectFactory(CONFIG_FILE_NAME, new Assembly[] {
                Assembly.GetExecutingAssembly(),
            }, null);

            IClassA obj1  = objectFactory.CreateInstance <IClassA>();
            string  name1 = obj1.Test(13);

            IClassA obj2  = objectFactory.CreateInstance <IClassA>();
            string  name2 = obj1.Test(18);
        }
        public void SuccessTest_WithProxyFactory()
        {
            MethodFilterProxyTypeFactory proxyFactory = new MethodFilterProxyTypeFactory("Xphter.Framework.Reflection.Tests.Proxies");

            IObjectFactory objectFactory = new XmlConfigurationObjectFactory(CONFIG_FILE_NAME, new Assembly[] {
                Assembly.GetExecutingAssembly(),
            }, proxyFactory);

            try {
                IClassA obj1  = objectFactory.CreateInstance <IClassA>();
                string  name1 = obj1.Test(13);

                IClassA obj2  = objectFactory.CreateInstance <IClassA>();
                string  name2 = obj1.Test(18);
            } finally {
#if DEBUG
                proxyFactory.SaveAssembly(null);
#endif
            }
        }