Beispiel #1
0
        public void TestCollectionSize1()
        {
            var weatherData = new WeatherDataAnalysis.Model.WeatherDataCollection {
                new WeatherData(DateTime.Now, 90, 40)
            };

            Assert.AreEqual(90, weatherData.GetDaysWithHighestTempForAYear()[0].High);
        }
Beispiel #2
0
        public void TestEmptyCollection()
        {
            var weatherData = new WeatherDataAnalysis.Model.WeatherDataCollection();

            Assert.ThrowsException <InvalidOperationException>(() => weatherData.GetDaysWithHighestTempForAYear());
        }