Esempio n. 1
0
        public void GetCountryNameFromXML_InvalidCountryID_ResturnsEmptyString()
        {
            int countryID = 0;

            PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml();
            string             actual          = xmlDataProvider.GetCountryName(countryID);

            Assert.IsEmpty(actual);
        }
Esempio n. 2
0
        public void GetCountryNameFromXML_GermanCountryID_ReturnsGermany()
        {
            int    countryID = 49;
            string expected  = "Germany";

            PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml();
            string             actual          = xmlDataProvider.GetCountryName(countryID);

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void GetCountryNameFromXML_InvalidCountryID_ResturnsEmptyString()
        {
            int countryID = 0;

            PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml();
            string actual = xmlDataProvider.GetCountryName(countryID);

            Assert.IsEmpty(actual);
        }
Esempio n. 4
0
        public void GetCountryNameFromXML_GermanCountryID_ReturnsGermany()
        {
            int countryID = 49;
            string expected = "Germany";

            PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml();
            string actual = xmlDataProvider.GetCountryName(countryID);

            Assert.AreEqual(expected, actual);
        }