Exemple #1
0
            public void CalculateBmi(double kg, double cm, double bmi)
            {
                var person = new Person();
                person.WeightKg = kg;
                person.HeightCm = cm;

                var actual = person.BMI;

                Assert.Equal(bmi, actual);
            }
Exemple #2
0
            public void Jenny()
            {
                var jenny = new Person();
                jenny.WeightKg = 50;
                jenny.HeightCm = 160;

                var bmi = jenny.BMI;

                Assert.Equal(19.53, bmi);
            }