public void GetCarrierName_EmptyAreaCode_ReturnsEmptyString() { string areaCode = String.Empty; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetCarrierName(areaCode); Assert.IsEmpty(actual); }
public void GetCarrierName_InvalidAreaCode_ReturnsEmptyString() { string areaCode = "123456"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetCarrierName(areaCode); Assert.IsEmpty(actual); }
public void GetCarrierName_AreaCodeOfTMobileGermany_ReturnsTMobileGermany() { string areaCode = "+491511"; string expected = "T-Mobile (D1)"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetCarrierName(areaCode); Assert.AreEqual(expected, actual); }