Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
        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);
        }