Example #1
0
 public void TestBmiCalculator()
 {
     BmiCalcPage bmiCalcPage = new BmiCalcPage();
     bmiCalcPage.Load();
     Assert.IsTrue(bmiCalcPage.IsLoaded);
     bmiCalcPage.CalculateBmi("181", "80");
     Assert.AreEqual("24.4", bmiCalcPage.Bmi);
     Assert.AreEqual("Normal", bmiCalcPage.BmiCategory);
     bmiCalcPage.Close();
 }
Example #2
0
        public void TestBmiCalculator()
        {
            BmiCalcPage bmiCalcPage = new BmiCalcPage();

            bmiCalcPage.Load();
            Assert.IsTrue(bmiCalcPage.IsLoaded);
            bmiCalcPage.CalculateBmi("181", "80");
            Assert.AreEqual("24.4", bmiCalcPage.Bmi);
            Assert.AreEqual("Normal", bmiCalcPage.BmiCategory);
            bmiCalcPage.Close();
        }
        public void TestBmiCalculator()
        {
            BmiCalcPage bmiCalcPage = new BmiCalcPage();

            bmiCalcPage.Load();
//Assert.IsTrue(bmiCalcPage.IsLoaded);
            bmiCalcPage.CalculateBmi("6", "180", "4");
            Assert.AreEqual("6", bmiCalcPage.heightfeet);
            Assert.AreEqual("4", bmiCalcPage.heightinch);

            bmiCalcPage.Close();
        }