Example #1
0
        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());
        }
Example #2
0
        public void GetWindDirection_NullInput_ThrowNullReferenceException()
        {
            var cityWeather = new CityWeather();

            Assert.Throws <NullReferenceException>(() => cityWeather.GetWindDirection());
        }