public void GetHighestValueFromDateAndToDateTest()
 {
     List<Measurement> testList = new List<Measurement>
     {
         new Temperature {Value = 10, DateOfMeasuement = new DateTime(2015, 5, 31) },
         new Temperature {Value = 5,  DateOfMeasuement = new DateTime(1993, 5, 31)},
         new Temperature {Value = 10, DateOfMeasuement = new DateTime(2010, 10, 12)},
         new Temperature {Value = 10, DateOfMeasuement = new DateTime(2015, 1, 11)},
         new Temperature {Value = 30, DateOfMeasuement = new DateTime(2009, 9, 11)},
         new Temperature {Value = 10, DateOfMeasuement = new DateTime(2016, 1, 11)}
     };
     DataProcessor dp = new DataProcessor();
     Assert.AreEqual(30, dp.GetHighestValue(new DateTime(2006, 11, 1), new DateTime(2015, 12, 13), testList));
 }
 public void GetAverageValueTest()
 {
     List<Measurement> testList = new List<Measurement>
     {
         new Temperature {Value = 5},
         new Temperature {Value = 5},
         new Temperature {Value = 10},
         new Temperature {Value = 5},
         new Temperature {Value = -5},
         new Temperature {Value = 10}
     };
     DataProcessor dp = new DataProcessor();
     Assert.AreEqual(5, dp.GetAverageValue(testList));
 }