public void SynchronizeWith(EffectorMgr target) { if (verNo == target.verNo) { return; } verNo = target.verNo; SetEffectorList(target.effectorList); }
public void RunEffectorsTest() { //Arrange MockEffector effector = new MockEffector(); Effector[] effectors = { effector, effector, effector }; EffectorMgr effectorMgr = new EffectorMgr(effectors); //Act effectorMgr.RunEffectors(target); //Assert Assert.AreEqual(3, runNo); }
public void UpdateEffectorsTestVerNo() { //Arrange MockEffector effector = new MockEffector(); Effector[] effectors = { effector }; EffectorMgr effectorMgr = new EffectorMgr(effectors, 2); //Act effectorMgr.UpdateEffectors(effector, effector, effector); //Assert Assert.AreEqual(3, effectorMgr.VerNo); }
public void SynchronizeWithTestVerNo() { //Arrange MockEffector effector = new MockEffector(); Effector[] srcEffectors = { effector, effector, effector }; EffectorMgr srcMgr = new EffectorMgr(srcEffectors, 3); EffectorMgr tarMgr = new EffectorMgr(); //Act tarMgr.SynchronizeWith(srcMgr); //Assert Assert.AreEqual(3, tarMgr.VerNo); }
public void SynchronizeWithTestTrue() { //Arrange MockEffector effector = new MockEffector(); Effector[] srcEffectors = { effector, effector, effector }; EffectorMgr srcMgr = new EffectorMgr(srcEffectors); EffectorMgr tarMgr = new EffectorMgr(); //Act tarMgr.SynchronizeWith(srcMgr); tarMgr.RunEffectors(target); //Assert Assert.AreEqual(3, runNo); }
void InitEffectorMgr(Effector[] effectors) { effectorMgr = new EffectorMgr(effectors); }
public void SynchronizeWith(EffectorMgr target) { effectorMgr.SynchronizeWith(target); }
void InitEffectorMgr() { effectorMgr = new EffectorMgr(this); }