public void Bmi_For_Over_Weight_Range() { var person = new Person(Height.Inches(75), Weight.Pounds(250)); var bmi = person.Bmi(); Assert.That(bmi, Is.EqualTo("You are over weight. You should see your doctor.")); }
public void Bmi_For_Normal_Weight_Range() { var subject = new Person(Height.Inches(75), Weight.Pounds(170)); var bmi = subject.Bmi(); Assert.That(bmi, Is.EqualTo("You are in the correct weight range.")); }
public void Execute() { float height = Input.ParseFloat(message: "Height (inches): "); float weight = Input.ParseFloat(message: "Weight (pounds): "); var person = new Person(Height.Inches(height), Weight.Pounds(weight)); var bmi = person.Bmi(); Console.WriteLine(bmi); }