Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public void BloodPressureMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeBP            = " 180 / 66 ";
            string         ExpectedReturnMsg = "";
            string         BPErrorMsg        = TestObservation.ValidateBloodPressure(SomeBP);

            Assert.AreEqual(BPErrorMsg, ExpectedReturnMsg);
        }