Beispiel #1
0
        public void RegionFetch()
        {
            string tokyo = GeoLocation.GetRegionName("en", 1, 2);

            Assert.AreEqual("Tokyo", tokyo);

            string bermuda = GeoLocation.GetRegionName(LanguageID.Korean, 186, 1);

            Assert.AreEqual("버뮤다", bermuda);
        }
Beispiel #2
0
 public void ReturnsCorrectRegionNameByLanguageId(LanguageID languageId, int country, int region, string expectedName)
 {
     GeoLocation.GetRegionName(languageId, country, region).Should().Be(expectedName);
 }