コード例 #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);
        }
コード例 #2
0
        public void GetVisibility_ValueBelowOneThousand_ReturnInMeters()
        {
            var cityWeather = new CityWeather()
            {
                Visibility = 0
            };

            var visibility = cityWeather.GetVisibility();

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