public void ReplaceAdvisorWhenConfigIsFrozen() { ProxyFactoryObject fac = CreateFrozenProxyFactory(); fac.IsFrozen = true; Assert.Throws <AopConfigException>(() => fac.ReplaceAdvisor(new PointcutForVoid(), new PointcutForVoid())); }
public void ReplaceAdvisorWhenConfigIsFrozen() { ProxyFactoryObject fac = CreateFrozenProxyFactory(); fac.IsFrozen = true; fac.ReplaceAdvisor(new PointcutForVoid(), new PointcutForVoid()); }