コード例 #1
0
        public void ReplaceAdvisorWhenConfigIsFrozen()
        {
            ProxyFactoryObject fac = CreateFrozenProxyFactory();

            fac.IsFrozen = true;
            Assert.Throws <AopConfigException>(() => fac.ReplaceAdvisor(new PointcutForVoid(), new PointcutForVoid()));
        }
コード例 #2
0
        public void ReplaceAdvisorWhenConfigIsFrozen()
        {
            ProxyFactoryObject fac = CreateFrozenProxyFactory();

            fac.IsFrozen = true;
            fac.ReplaceAdvisor(new PointcutForVoid(), new PointcutForVoid());
        }