예제 #1
0
        public void GetCarrierName_EmptyAreaCode_ReturnsEmptyString()
        {
            string areaCode = String.Empty;

            PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml();
            string actual = xmlDataProvider.GetCarrierName(areaCode);

            Assert.IsEmpty(actual);
        }
예제 #2
0
        public void GetCarrierName_InvalidAreaCode_ReturnsEmptyString()
        {
            string areaCode = "123456";

            PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml();
            string             actual          = xmlDataProvider.GetCarrierName(areaCode);

            Assert.IsEmpty(actual);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }