public void GetActualValue_1LvlWithBonuses_ReturnBaseValuePlusBonuses() { // ARRANGE const int baseValue = 10; const int incrementValue = 1; const int bonusValue = 1; const int level = 1; const int expectedValue = baseValue + bonusValue; var personStat = new PersonStat(baseValue, incrementValue); var bonuses = new[] { new PersonStat(bonusValue) }; // ACT var factValue = personStat.GetActualValue(level, rarityBonus: 0, bonuses: bonuses); // ASSERT factValue.Should().Be(expectedValue); }
public ActionResult TDEE(int age, float weight, string gender, int height, string activity) { PersonStat ps = new PersonStat(); ps.Gender = gender; ps.Age = age; ps.Weight = weight; ps.Height = height; ps.Activity = activity; return(View(ps)); }
public void GetActualValue_1LvlWithoutBonuses_ReturnBaseValue() { // ARRANGE const int baseValue = 10; const int incrementValue = 1; const int level = 1; const int expectedValue = baseValue; var personStat = new PersonStat(baseValue, incrementValue); // ACT var factValue = personStat.GetActualValue(level, 0); // ASSERT factValue.Should().Be(expectedValue); }