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