Ejemplo n.º 1
0
            public void MobileNumberSymbolsCheck()
            {
                //test number with symbols in it
                clsStaff aStaff           = new clsStaff();
                String   testMobileNumber = "012345678*90";
                String   error            = aStaff.ValidateMobileNumber(testMobileNumber);

                Assert.AreNotEqual(error, "");
            }
Ejemplo n.º 2
0
            public void MobileNumberValidTest()
            {
                //test valid numbers
                clsStaff aStaff           = new clsStaff();
                String   testMobileNumber = "1234 5678";
                String   error            = aStaff.ValidateMobileNumber(testMobileNumber);

                Assert.AreEqual(error, "");
            }
Ejemplo n.º 3
0
            public void MobileNumberLettersCheck()
            {
                //test number with letters in it, spaces don't matter
                clsStaff aStaff           = new clsStaff();
                String   testMobileNumber = "0123a456789";
                String   error            = aStaff.ValidateMobileNumber(testMobileNumber);

                Assert.AreNotEqual(error, "");
            }