コード例 #1
0
        public void Start_date_later_today()
        {
            var task = new Task {
                Folder = this.folder, Start = DateTime.Now.AddHours(1)
            };

            var tasks = TaskPicker.SelectTasks(this.folder, new TestSettings());

            Assert.AreEqual(0, tasks.Count);
        }
コード例 #2
0
        public void Start_date_past()
        {
            var task = new Task {
                Folder = this.folder, Start = DateTime.Now.AddDays(-1)
            };

            var tasks = TaskPicker.SelectTasks(this.folder, new TestSettings());

            Assert.AreEqual(1, tasks.Count);
        }
コード例 #3
0
 private IList <ITask> PickTasks(IAbstractFolder abstractFolder)
 {
     return(TaskPicker.SelectTasks(abstractFolder, this.workbook.Settings).ToList());
 }