예제 #1
0
        public void CountryFetch()
        {
            string japan = GeoLocation.GetCountryName("en", 1);

            Assert.AreEqual("Japan", japan);

            string argentina = GeoLocation.GetCountryName(LanguageID.English, 10);

            Assert.AreEqual("Argentina", argentina);
        }
예제 #2
0
 public void ReturnsCorrectCountryNameByLanguageId(LanguageID languageId, int country, string expectedName)
 {
     GeoLocation.GetCountryName(languageId, country).Should().Be(expectedName);
 }