public void GetWindDirection_DegreesFloat_ValidDirectionArrow(float degrees, string valid) { var wind = new Wind() { Degrees = degrees }; var cityWeather = new CityWeather() { Wind = wind }; Assert.Equal(valid, cityWeather.GetWindDirection()); }
public void GetWindDirection_NullInput_ThrowNullReferenceException() { var cityWeather = new CityWeather(); Assert.Throws <NullReferenceException>(() => cityWeather.GetWindDirection()); }