public void GetCountryName_InvalidCountryID_ReturnsEmptyString()
        {
            int countryID = 0;

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetCountryName(countryID);

            Assert.IsEmpty(actual);
        }
예제 #2
0
        public void GetCountryName_InvalidCountryID_ReturnsEmptyString()
        {
            int countryID = 0;

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetCountryName(countryID);

            Assert.IsEmpty(actual);
        }
예제 #3
0
        public void GetCountryName_GermanCountryID_ReturnsGermany()
        {
            int countryID = 49;
            // TODO: The registry contains the localized names of the countries,
            // thus the expected result needs to be translated to the correct language.
            //string expected = "Germany";
            string expected = "Deutschland";

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetCountryName(countryID);

            Assert.AreEqual(expected, actual);
        }
        public void GetCountryName_GermanCountryID_ReturnsGermany()
        {
            int countryID = 49;
            // TODO: The registry contains the localized names of the countries,
            // thus the expected result needs to be translated to the correct language.
            //string expected = "Germany";
            string expected = "Deutschland";

            PhoneNumberDataRegistry registryDataProvider = new PhoneNumberDataRegistry();
            string actual = registryDataProvider.GetCountryName(countryID);

            Assert.AreEqual(expected, actual);
        }