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, ""); }
public void MobileNumberValidTest() { //test valid numbers clsStaff aStaff = new clsStaff(); String testMobileNumber = "1234 5678"; String error = aStaff.ValidateMobileNumber(testMobileNumber); Assert.AreEqual(error, ""); }
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, ""); }