Esempio n. 1
0
        public void GetVisibility_ValueOverOneThousand_ReturnInKilometers(string expected, int value)
        {
            var cityWeather = new CityWeather()
            {
                Visibility = value
            };

            var visibility = cityWeather.GetVisibility();

            Assert.Equal(expected, visibility);
        }
Esempio n. 2
0
        public void GetVisibility_ValueBelowOneThousand_ReturnInMeters()
        {
            var cityWeather = new CityWeather()
            {
                Visibility = 0
            };

            var visibility = cityWeather.GetVisibility();

            Assert.Equal("0 m", visibility);
        }