Exemplo n.º 1
0
        public void CommentsMinPlusOne()
        {
            clsTreatment TestTreatment     = new clsTreatment();
            string       SomeComments      = "Th";
            string       ExpectedReturnMsg = "";
            string       CommentsErrMsg    = TestTreatment.ValidateComments(SomeComments);

            Assert.AreEqual(CommentsErrMsg, ExpectedReturnMsg);
        }
Exemplo n.º 2
0
        public void CommentsExtremeMax()
        {
            clsTreatment TestTreatment = new clsTreatment();
            string       SomeComments  = "";

            SomeComments = SomeComments.PadLeft(3000);
            string ExpectedReturnMsg = "Comments No more than 1000 characters";
            string CommentsErrMsg    = TestTreatment.ValidateComments(SomeComments);

            Assert.AreEqual(CommentsErrMsg, ExpectedReturnMsg);
        }
Exemplo n.º 3
0
        public void CommentsMax()
        {
            clsTreatment TestTreatment = new clsTreatment();
            string       SomeComments  = "";

            SomeComments = SomeComments.PadLeft(1000);
            string ExpectedReturnMsg = "";
            string CommentsErrMsg    = TestTreatment.ValidateComments(SomeComments);

            Assert.AreEqual(CommentsErrMsg, ExpectedReturnMsg);
        }