public void GetPhoneFormatFromXML_GetSameAreaFormatForGermany_ReturnsGermanSameAreaFormat() { int countryID = 49; string expected = "G"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.SameAreaRule); Assert.AreEqual(expected, actual); }
public void GetPhoneFormatFromXML_GetInternationalFormatForGermany_ResturnsGermanInternationalFormat() { int countryID = 49; string expected = "00EFG"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.InternationalRule); Assert.AreEqual(expected, actual); }
public void GetPhoneFormatFromXML_GetCanonicalFormat_ReturnsCanonicalFormat() { int countryID = 49; string expected = PhoneNumberConstants.CANONICAL_FORMAT; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.CANONICAL); Assert.AreEqual(expected, actual); }
public void GetPhoneFormatFromXML_GetSameAreaFormatForGermany_ReturnsGermanSameAreaFormat() { int countryID = 49; string expected = "G"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.SameAreaRule); Assert.AreEqual(expected, actual); }
public void GetPhoneFormatFromXML_GetInternationalFormatForGermany_ResturnsGermanInternationalFormat() { int countryID = 49; string expected = "00EFG"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.InternationalRule); Assert.AreEqual(expected, actual); }
public void GetPhoneFormatFromXML_GetCanonicalFormat_ReturnsCanonicalFormat() { int countryID = 49; string expected = PhoneNumberConstants.CANONICAL_FORMAT; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetPhoneFormat(countryID, DISTANCE_RULE.CANONICAL); Assert.AreEqual(expected, actual); }