Пример #1
0
            public void HandleDueDate_Null()
            {
                ToDoActivationRule rule = new ToDoActivationRule();
                var val = rule.HandleDueDate(null);

                Assert.IsNull(val);
            }
Пример #2
0
            public void HandleDueDate_HasRange()
            {
                var days = 10;
                ToDoActivationRule rule = new ToDoActivationRule();
                var duedate             = rule.HandleDueDate(days);

                var nDt   = DateTime.UtcNow.AddDays(days);
                var dDate = new DateTime(nDt.Year, nDt.Month, nDt.Day, 12, 0, 0);

                Assert.AreEqual(duedate, dDate);
            }