Beispiel #1
0
        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))));
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }