示例#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);
示例#3
0
 public string Run_ReturnsExpectedResult(double height, double weight)
 {
     return(Bmi.Run(() => height, () => weight));
 }
示例#4
0
 public string BmiMessageTest(double bmi)
 {
     return(Bmi.GetMessageFor(bmi));
 }
示例#5
0
 public string RateWeight_ReturnsExpectedResult(double height, double weight)
 {
     return(Bmi.RateWeight(height, weight));
 }