public void Test_for_low_values(int s, int d) { BP = new BPCalculator.BloodPressure() { Systolic = s, Diastolic = d }; Assert.Equal(BPCalculator.BPCategory.Low, BP.Category); }
public void Test_for_Non_elevated_values(int s, int d) { BP = new BPCalculator.BloodPressure() { Systolic = s, Diastolic = d }; Assert.NotEqual(BPCalculator.BPCategory.Elevated, BP.Category); }
public void Test_for_high2_values(int s, int d) { BP = new BPCalculator.BloodPressure() { Systolic = s, Diastolic = d }; Assert.InRange(d, BPCalculator.BloodPressure.DiastolicMin, BPCalculator.BloodPressure.DiastolicMax); Assert.Equal(BPCalculator.BPCategory.High2, BP.Category); }