public void GetCountryNameFromXML_InvalidCountryID_ResturnsEmptyString() { int countryID = 0; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetCountryName(countryID); Assert.IsEmpty(actual); }
public void GetCountryNameFromXML_GermanCountryID_ReturnsGermany() { int countryID = 49; string expected = "Germany"; PhoneNumberDataXml xmlDataProvider = new PhoneNumberDataXml(); string actual = xmlDataProvider.GetCountryName(countryID); Assert.AreEqual(expected, actual); }