示例#1
0
 public void before()
 {
     collection = new ModifierCollection();
     mul        = new TestMutiModifier(2);
     add        = new TestAdditionModifier(5);
     pres       = new TestPresModifier(50);
 }
示例#2
0
        public void MulModifier()
        {
            TestMutiModifier mul = new TestMutiModifier(2);

            collection.add(mul);

            float ans = collection.calc(stat);

            Assert.AreEqual(10, ans);
        }
示例#3
0
        public void allModifier()
        {
            TestAdditionModifier add  = new TestAdditionModifier(5);
            TestMutiModifier     mul  = new TestMutiModifier(2);
            TestPresModifier     pres = new TestPresModifier(50);

            collection.add(add);
            collection.add(mul);
            collection.add(pres);

            float ans = collection.calc(stat);

            Assert.AreEqual(30, ans);
        }