public void IsValidPhoneNumber_IsBlank_GetExceptionBack() { //Arrange var contactValidator = new ContactValidator(); //Act string PhoneNumber = ""; //Assert contactValidator.IsValidPhoneNumber(PhoneNumber); }
public void IsValidPhoneNumber_IsValidNegCaseLetters_GetExceptionBack() { //Arrange var contactValidator = new ContactValidator(); //Act string PhoneNumber = "abcdwf"; contactValidator.IsValidPhoneNumber(PhoneNumber); //Assert //Assert.IsTrue(actual); }
public void IsValidPhoneNumber_IsValidNegative_GetExceptionBack() { //Arrange var contactValidator = new ContactValidator(); //Act string PhoneNumber = "033----)4(567896"; contactValidator.IsValidPhoneNumber(PhoneNumber); //Assert //Assert.IsTrue(actual); }
public void IsValidPhoneNumber_IsValidPositive7_GetTrueBack() { //Arrange var contactValidator = new ContactValidator(); //Act string PhoneNumber = "18005551234"; bool actual = contactValidator.IsValidPhoneNumber(PhoneNumber); //Assert Assert.IsTrue(actual); }
public void IsValidPhoneNumber_IsValidPositive10_GetTrueBack() { //Arrange var contactValidator = new ContactValidator(); //Act string PhoneNumber = "918880344456"; bool actual = contactValidator.IsValidPhoneNumber(PhoneNumber); //Assert Assert.IsTrue(actual); }