public void TestStats_Decrease() { var s1 = new StatsCollection(); Assert.AreEqual(0, s1[Stat.Fight]); s1.Decrease(Stat.Fight, 10); Assert.AreEqual(-10, s1[Stat.Fight]); }
public void TestStats_DecreaseAll() { var s1 = new StatsCollection(); Assert.AreEqual(0, s1[Stat.Fight]); s1.Decrease(new StatsCollection(10)); Assert.AreEqual(-10, s1[Stat.Fight]); Assert.IsTrue(s1.All(v => v.Value == -10)); }
public void TestStats_DecreaseByStartingValue() { var sc1 = new StatsCollection(10); var sc2 = new StatsCollection(12); sc1.Decrease(sc2); Assert.AreEqual(-2, sc1[Stat.Fight]); }