Ejemplo n.º 1
0
        public void ComputeBmi_WhenHeighAndWeight_ReturnsBmi(Double height, Double weight, Double expectedBmi)
        {
            // Arrange
            //String height = "70";
            //String weight = "90";

            // Act
            Double actualBmi = Bmi.ComputeBmi(height, weight);

            // Assert
            Assert.AreEqual(expectedBmi, Math.Round(actualBmi, 2));
        }
 public double CalculateBmi(double height, double weight)
 => Bmi.CalculateBmi(height, weight);
Ejemplo n.º 3
0
 public string Run_ReturnsExpectedResult(double height, double weight)
 {
     return(Bmi.Run(() => height, () => weight));
 }
Ejemplo n.º 4
0
 public string BmiMessageTest(double bmi)
 {
     return(Bmi.GetMessageFor(bmi));
 }
Ejemplo n.º 5
0
 public string RateWeight_ReturnsExpectedResult(double height, double weight)
 {
     return(Bmi.RateWeight(height, weight));
 }