public void B2_WeatherMonthAdd() { WeatherDay weatherDay1 = new WeatherDay(); weatherDay1.Number = 1; weatherDay1.TempMax = 34.4; weatherDay1.TempMin = 15.5; WeatherDay weatherDay2 = new WeatherDay(); weatherDay2.Number = 2; weatherDay2.TempMax = 34.4; weatherDay2.TempMin = 34.1; WeatherMonth weatherMonth = new WeatherMonth(); weatherMonth.Add(weatherDay1); weatherMonth.Add(weatherDay2); Assert.AreEqual(weatherMonth.GetNumerDayMinDiff(), 2); }
public void B1_WeatherMonthAdd() { WeatherDay weatherDay = new WeatherDay(); weatherDay.Number = 1; weatherDay.TempMax = 34.4; weatherDay.TempMin = 15.5; List <WeatherDay> days = new List <WeatherDay>(); days.Add(weatherDay); WeatherMonth weatherMonth = new WeatherMonth(); weatherMonth.Add(weatherDay); CollectionAssert.AreEqual(weatherMonth, days); }