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); }
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); }
private IList <ITask> PickTasks(IAbstractFolder abstractFolder) { return(TaskPicker.SelectTasks(abstractFolder, this.workbook.Settings).ToList()); }