Esempio n. 1
0
        public void InstanceObservationOK()
        {
            //create an instance of the class we want to create
            clsObservation TestObs = new clsObservation();

            //test to see that the instance actually exists
            Assert.IsNotNull(TestObs);
        }
Esempio n. 2
0
        public void WeightMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeWeight        = "300.00";
            string         ExpectedReturnMsg = "";
            string         WeightErrorMsg    = TestObservation.ValidateWeight(SomeWeight);

            Assert.AreEqual(WeightErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
        public void NotesMinPlusOne()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeNotes         = "Ca";
            string         ExpectedReturnMsg = "";
            string         NotesErrMsg       = TestObservation.ValidateNotes(SomeNotes);

            Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg);
        }
Esempio n. 5
0
        public void TempExtremeMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeTemp          = "50.00";
            string         ExpectedReturnMsg = "The temperature can only be between 27 minimum to 45 max";
            string         TempErrorMsg      = TestObservation.ValidateTemperature(SomeTemp);

            Assert.AreEqual(TempErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 6
0
        public void HeightMaxLessOne()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeHeight        = "2.00";
            string         ExpectedReturnMsg = "";
            string         HeightErrorMsg    = TestObservation.ValidateHeight(SomeHeight);

            Assert.AreEqual(HeightErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 7
0
        public void PulseMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomePulse         = "180";
            string         ExpectedReturnMsg = "";
            string         PulseErrorMsg     = TestObservation.ValidatePulse(SomePulse);

            Assert.AreEqual(PulseErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 8
0
        public void WeightMinLessOne()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeWeight        = "19";
            string         ExpectedReturnMsg = "The weight can only be between 20kg minimum to 300kg max";
            string         WeightErrorMsg    = TestObservation.ValidateWeight(SomeWeight);

            Assert.AreEqual(WeightErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 9
0
        public void DateTimetakenMax()
        {
            clsObservation TestObservation     = new clsObservation();
            string         SomeDateTimeTaken   = Convert.ToString(DateTime.Today);
            string         ExpectedReturnMsg   = "";
            string         DateTimeTakenErrMsg = TestObservation.ValidateDateTimeTaken(SomeDateTimeTaken);

            Assert.AreEqual(DateTimeTakenErrMsg, ExpectedReturnMsg);
        }
Esempio n. 10
0
        public void PulseExtremeMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomePulse         = "200";
            string         ExpectedReturnMsg = "The Pulse can only be between 20 minimum to 180 max";
            string         PulseErrorMsg     = TestObservation.ValidatePulse(SomePulse);

            Assert.AreEqual(PulseErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 11
0
        public void TempMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeTemp          = "45.00";
            string         ExpectedReturnMsg = "";
            string         TempErrorMsg      = TestObservation.ValidateTemperature(SomeTemp);

            Assert.AreEqual(TempErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 12
0
        public void HeightExtremeMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeHeight        = "5.00";
            string         ExpectedReturnMsg = "The height can only be between 0.5m minimum to 3m max";
            string         HeightErrorMsg    = TestObservation.ValidateHeight(SomeHeight);

            Assert.AreEqual(HeightErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 13
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);
        }
Esempio n. 14
0
        public void BloodPressureMax()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeBP            = " 180 / 66 ";
            string         ExpectedReturnMsg = "";
            string         BPErrorMsg        = TestObservation.ValidateBloodPressure(SomeBP);

            Assert.AreEqual(BPErrorMsg, ExpectedReturnMsg);
        }
Esempio n. 15
0
        public void NotesExtremeMax()
        {
            clsObservation TestObservation = new clsObservation();
            string         SomeNotes       = "";

            SomeNotes = SomeNotes.PadLeft(10000);
            string ExpectedReturnMsg = "Notes No more than 5000 characters";
            string NotesErrMsg       = TestObservation.ValidateNotes(SomeNotes);

            Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg);
        }
Esempio n. 16
0
        public void NotesMax()
        {
            clsObservation TestObservation = new clsObservation();
            string         SomeNotes       = "";

            SomeNotes = SomeNotes.PadLeft(5000);
            string ExpectedReturnMsg = "";
            string NotesErrMsg       = TestObservation.ValidateNotes(SomeNotes);

            Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg);
        }
Esempio n. 17
0
        public void TemperaturePropertyOK()
        {
            // create an instance of the class we want to create
            clsObservation TestObservation = new clsObservation();
            //create some test data to assign to the property
            double SomeTemperature = 36.4;

            //assign the test data to the property
            TestObservation.Temperature = SomeTemperature;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObservation.Temperature, SomeTemperature);
        }
Esempio n. 18
0
        public void PhysicalSateNotesPropertyOK()
        {
            // create an instance of the class we want to create
            clsObservation TestObservation = new clsObservation();
            //create some test data to assign to the property
            string SomeNotes = "James physical state is of no concern, his vital signs are all fine";

            //assign the test data to the property
            TestObservation.PhysicalStateNotes = SomeNotes;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObservation.PhysicalStateNotes, SomeNotes);
        }
Esempio n. 19
0
        public void MentalSateNotesPropertyOK()
        {
            // create an instance of the class we want to create
            clsObservation TestObservation = new clsObservation();
            //create some test data to assign to the property
            string SomeNotes = "James mental state has been up and down today, he seems unsettled.";

            //assign the test data to the property
            TestObservation.MentalStateNotes = SomeNotes;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObservation.MentalStateNotes, SomeNotes);
        }
Esempio n. 20
0
        public void WeightPropertyOK()
        {
            // create an instance of the class we want to create
            clsObservation TestObservation = new clsObservation();
            //create some test data to assign to the property
            double SomeWeight = 80.90;

            //assign the test data to the property
            TestObservation.PatientWeight = SomeWeight;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObservation.PatientWeight, SomeWeight);
        }
Esempio n. 21
0
        public void BloodPressurePropertyOK()
        {
            // create an instance of the class we want to create
            clsObservation TestObservation = new clsObservation();
            //create some test data to assign to the property
            string SomeBP = "179 / 29 ";

            //assign the test data to the property
            TestObservation.BloodPressure = SomeBP;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObservation.BloodPressure, SomeBP);
        }
Esempio n. 22
0
        public void PulsePropertyOK()
        {
            // create an instance of the class we want to create
            clsObservation TestObservation = new clsObservation();
            //create some test data to assign to the property
            int SomePulse = 79;

            //assign the test data to the property
            TestObservation.Pulse = SomePulse;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObservation.Pulse, SomePulse);
        }
Esempio n. 23
0
        public void ObservationIDPropertyOK()
        {
            //create an instance of the class we want to create
            clsObservation TestObs = new clsObservation();
            //create some test data to assign to the property
            Int32 SomeObsID = 1;

            //assign the test data to the property
            TestObs.ObservationID = SomeObsID;
            //test to see that the two values are in fact the same
            Assert.AreEqual(TestObs.ObservationID, SomeObsID);
        }
Esempio n. 24
0
        public void DateTimeTaken()
        {
            clsObservation TestObservation = new clsObservation();

            TestObservation.DateTimeTaken = DateTime.Now;
        }