コード例 #1
0
        public void GetIconSourceUri_DifferentSizes_ValidUri(IconSize size, string uri)
        {
            var weather = new Weather()
            {
                Icon = "01d"
            };
            var cityWeather = new CityWeather()
            {
                Weather = new List <Weather> {
                    weather
                }
            };

            var iconUri = cityWeather.GetIconSourceUri(size);

            Assert.Equal(iconUri, uri);
        }