public void BloodPressureMaxPlusOne() { clsObservation TestObservation = new clsObservation(); string SomeBP = "181/123cc45"; string ExpectedReturnMsg = "Blood Pressure No more than 10 characters"; string BPErrorMsg = TestObservation.ValidateBloodPressure(SomeBP); Assert.AreEqual(BPErrorMsg, ExpectedReturnMsg); }
public void BloodPressureExtremeMax() { clsObservation TestObservation = new clsObservation(); string SomeBP = "200/286Pressure"; string ExpectedReturnMsg = "Blood Pressure No more than 10 characters"; string BPErrorMsg = TestObservation.ValidateBloodPressure(SomeBP); Assert.AreEqual(BPErrorMsg, ExpectedReturnMsg); }
public void BloodPressureMax() { clsObservation TestObservation = new clsObservation(); string SomeBP = " 180 / 66 "; string ExpectedReturnMsg = ""; string BPErrorMsg = TestObservation.ValidateBloodPressure(SomeBP); Assert.AreEqual(BPErrorMsg, ExpectedReturnMsg); }