示例#1
0
        public void TestMaleCaculator()
        {
            CaloriesCalculator caloriesCalculator = new CaloriesCalculator();
            var got      = caloriesCalculator.CalculateCalories(110M, 5M, 1M, 12M, "Male");
            var expected = 1606.2M;

            Assert.AreEqual(got, expected);
        }
示例#2
0
 public void WhenIPressCalculateBasicCalories()
 {
     CaloriesCalculator.Calculate_BasicCalories(user);
 }
示例#3
0
 public void WhenIPressCalculateActivityNeeds()
 {
     CaloriesCalculator.CalculateActivityNeeds(user, activity_factor);
 }
示例#4
0
 public void GivenIHaveEnteredMy(int activity_level)
 {
     user.GetActivity_Level = (User.Activity_Level)activity_level;
     activity_factor        = CaloriesCalculator.Get_Activity_Factor(user);
 }