public void GetVisibility_ValueOverOneThousand_ReturnInKilometers(string expected, int value) { var cityWeather = new CityWeather() { Visibility = value }; var visibility = cityWeather.GetVisibility(); Assert.Equal(expected, visibility); }
public void GetVisibility_ValueBelowOneThousand_ReturnInMeters() { var cityWeather = new CityWeather() { Visibility = 0 }; var visibility = cityWeather.GetVisibility(); Assert.Equal("0 m", visibility); }