public void FromOneWeatherInfo()
        {
            var collection = new WeatherInfoCollection("Test1", new List <WeatherInfo> {
                new WeatherInfo(DateTime.Today.AddDays(-3), 50, 40)
            });

            Assert.AreEqual(50, collection.FindWithHighestTemp().First().HighTemp);
        }
        public void FromManyWeatherInfo()
        {
            var collection = new WeatherInfoCollection("Test1", new List <WeatherInfo> {
                new WeatherInfo(DateTime.Today.AddDays(-3), 0, -10),
                new WeatherInfo(DateTime.Today.AddDays(-1), 99, -10),
                new WeatherInfo(DateTime.Today, 100, -10)
            });

            Assert.AreEqual(100, collection.FindWithHighestTemp().First().HighTemp);
        }
        public void FromZeroWeatherInfo()
        {
            var collection = new WeatherInfoCollection("Test1", new List <WeatherInfo>());

            Assert.ThrowsException <InvalidOperationException>(() => collection.FindWithHighestTemp().First().HighTemp);
        }