예제 #1
0
    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);
    }
예제 #2
0
    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);
    }
예제 #3
0
 public void RunEffectors(MonoBehaviour target)
 {
     effectorMgr.RunEffectors(target);
 }