Пример #1
0
        public void MessageExtremeMax()
        {
            //create a new instance of the class we want to create
            clsContactUs AContact = new clsContactUs();
            //string variable to store result of validation
            string OK = "";
            //create some test data to assign to property
            string Email   = " [email protected]";
            string Name    = " Ayub Osman ";
            string Message = "Samsung65325621478583254441251Samsung65325621478583254441251 ";

            //invoke method
            OK = AContact.Valid(Email, Name, Message);
            //test to see if it exists
            Assert.AreNotEqual(OK, "");
        }
Пример #2
0
        public void ValidExist()
        {
            //create a new instance of the class we want to create
            clsContactUs AContact = new clsContactUs();
            //string variable to store result of validation
            string OK = "";
            //create some test data to assign to property
            string Email   = " [email protected]";
            string Name    = " Ayub Osman ";
            string Message = " It was a nice experience. Thanks  ";

            //invoke method
            OK = AContact.Valid(Email, Name, Message);
            //test to see if it exists
            Assert.AreEqual(OK, "");
        }
Пример #3
0
        public void MessageMaxPlus1()
        {
            //create a new instance of the class we want to create
            clsContactUs AContact = new clsContactUs();
            //string variable to store result of validation
            string OK = "";
            //create some test data to assign to property
            string Email   = " [email protected]";
            string Name    = " Ayub Osman ";
            string Message = "AabcdefhjklmnjhsaqweAbcdefhjklmnjhsaqweaa";

            //invoke method
            OK = AContact.Valid(Email, Name, Message);
            //test to see if it exists
            Assert.AreEqual(OK, "");
        }