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); }
public void WeightMax() { clsObservation TestObservation = new clsObservation(); string SomeWeight = "300.00"; string ExpectedReturnMsg = ""; string WeightErrorMsg = TestObservation.ValidateWeight(SomeWeight); Assert.AreEqual(WeightErrorMsg, 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 NotesMinPlusOne() { clsObservation TestObservation = new clsObservation(); string SomeNotes = "Ca"; string ExpectedReturnMsg = ""; string NotesErrMsg = TestObservation.ValidateNotes(SomeNotes); Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg); }
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); }
public void HeightMaxLessOne() { clsObservation TestObservation = new clsObservation(); string SomeHeight = "2.00"; string ExpectedReturnMsg = ""; string HeightErrorMsg = TestObservation.ValidateHeight(SomeHeight); Assert.AreEqual(HeightErrorMsg, ExpectedReturnMsg); }
public void PulseMax() { clsObservation TestObservation = new clsObservation(); string SomePulse = "180"; string ExpectedReturnMsg = ""; string PulseErrorMsg = TestObservation.ValidatePulse(SomePulse); Assert.AreEqual(PulseErrorMsg, ExpectedReturnMsg); }
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); }
public void DateTimetakenMax() { clsObservation TestObservation = new clsObservation(); string SomeDateTimeTaken = Convert.ToString(DateTime.Today); string ExpectedReturnMsg = ""; string DateTimeTakenErrMsg = TestObservation.ValidateDateTimeTaken(SomeDateTimeTaken); Assert.AreEqual(DateTimeTakenErrMsg, ExpectedReturnMsg); }
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); }
public void TempMax() { clsObservation TestObservation = new clsObservation(); string SomeTemp = "45.00"; string ExpectedReturnMsg = ""; string TempErrorMsg = TestObservation.ValidateTemperature(SomeTemp); Assert.AreEqual(TempErrorMsg, ExpectedReturnMsg); }
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); }
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 BloodPressureMax() { clsObservation TestObservation = new clsObservation(); string SomeBP = " 180 / 66 "; string ExpectedReturnMsg = ""; string BPErrorMsg = TestObservation.ValidateBloodPressure(SomeBP); Assert.AreEqual(BPErrorMsg, ExpectedReturnMsg); }
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); }
public void NotesMax() { clsObservation TestObservation = new clsObservation(); string SomeNotes = ""; SomeNotes = SomeNotes.PadLeft(5000); string ExpectedReturnMsg = ""; string NotesErrMsg = TestObservation.ValidateNotes(SomeNotes); Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
public void DateTimeTaken() { clsObservation TestObservation = new clsObservation(); TestObservation.DateTimeTaken = DateTime.Now; }