Esempio n. 1
0
        public void CalorieCalculationTest()
        {
            //testing if calculations for TDEE and Calorie based on BMI
            var food = new DietPlanFunctions();

            Assert.True(food.Calorie());
        }
Esempio n. 2
0
        public void GetDetails()
        {
            //get BMI to pass to decision tree and calculations
            var food = new DietPlanFunctions();

            Assert.True(food.GetUserDetails());
        }
Esempio n. 3
0
        public void PositiveFoodsTest()
        {
            //testing if only foods with decision='positive' are returned
            var food = new DietPlanFunctions();

            Assert.True(food.checkFood());
        }
Esempio n. 4
0
        public void APITest()
        {
            //testing nutitionix api response
            var food = new DietPlanFunctions();

            Assert.True(food.testAPI("https://trackapi.nutritionix.com/v2/natural/nutrients", "oatmeal"));
        }