示例#1
0
        public void FillCountryList_UseAllCultures_ReturnsCountries()
        {
            ICountriesProvider provider = new CountriesProvider();

            CultureInfo[] cInfoList = CultureInfo.GetCultures(CultureTypes.SpecificCultures);

            var count = cInfoList.Select(x => new RegionInfo(x.LCID).EnglishName).Distinct().Count();

            List <string> result = provider.FillCountryList();

            Assert.IsNotNull(result);
            Assert.AreEqual(result.Count, count);
        }