Example #1
0
        public void NotesMinPlusOne()
        {
            clsObservation TestObservation   = new clsObservation();
            string         SomeNotes         = "Ca";
            string         ExpectedReturnMsg = "";
            string         NotesErrMsg       = TestObservation.ValidateNotes(SomeNotes);

            Assert.AreEqual(NotesErrMsg, ExpectedReturnMsg);
        }
Example #2
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);
        }
Example #3
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);
        }