Exemplo n.º 1
0
        public void TestStatCalculator_CorrectTotalStatReturned(string i_unitID, string i_stat, int i_expectedValue)
        {
            Unit unit = new Unit(GenericDataLoader.GetData <UnitData>(i_unitID),
                                 new UnitProgress()
            {
                Level = 1, Trainers = 1
            },
                                 new ViewModel());

            int totalStat = mStatCalculator.GetTotalStatFromUnit(unit, i_stat);

            Assert.AreEqual(i_expectedValue, totalStat);
        }