public void before() { collection = new ModifierCollection(); mul = new TestMutiModifier(2); add = new TestAdditionModifier(5); pres = new TestPresModifier(50); }
public void MulModifier() { TestMutiModifier mul = new TestMutiModifier(2); collection.add(mul); float ans = collection.calc(stat); Assert.AreEqual(10, ans); }
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); }