コード例 #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));
        }
コード例 #2
0
 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));
 }