public void DayGenerateDaysTest() { DayModel model = new DayModel(); model.GenerateDays(new Day(new DateTime(2017, 11, 11))); Assert.IsTrue(model.Day.DateEquals(new Day(new DateTime(2017, 11, 11)))); }
public void DayGetPreviousDays() { DayModel model = new DayModel(); Day day = new Day(new DateTime(2017, 11, 11)); model.GenerateDays(day); Day previousDay = model.GetPreviousDay(); Assert.AreEqual(day.DayOfYear - 1, previousDay.DayOfYear); }
public void DayGetNextDays() { DayModel model = new DayModel(); Day day = new Day(new DateTime(2017, 11, 11)); model.GenerateDays(day); Day nextDay = model.GetNextDay(); Assert.AreEqual(day.DayOfYear + 1, nextDay.DayOfYear); }