Ejemplo n.º 1
0
        public void MedicationGivenMin()
        {
            clsTreatment TestTreatment      = new clsTreatment();
            string       SomeMedication     = "o";
            string       ExpectedReturnMsg  = "";
            string       MedicationErrorMsg = TestTreatment.ValidateMedication(SomeMedication);

            Assert.AreEqual(MedicationErrorMsg, ExpectedReturnMsg);
        }
Ejemplo n.º 2
0
        public void MedicationGivenExtremeMax()
        {
            clsTreatment TestTreatment  = new clsTreatment();
            string       SomeMedication = "";

            SomeMedication = SomeMedication.PadLeft(500);
            string ExpectedReturnMsg = "Medication No more than 50 characters";
            string MedicationErrMsg  = TestTreatment.ValidateMedication(SomeMedication);

            Assert.AreEqual(MedicationErrMsg, ExpectedReturnMsg);
        }
Ejemplo n.º 3
0
        public void MedicationGivenMaxLessOne()
        {
            clsTreatment TestTreatment  = new clsTreatment();
            string       SomeMedication = "";

            SomeMedication = SomeMedication.PadLeft(49);
            string ExpectedReturnMsg = "";
            string MedicationErrMsg  = TestTreatment.ValidateMedication(SomeMedication);

            Assert.AreEqual(MedicationErrMsg, ExpectedReturnMsg);
        }