public void ArchiveTask_MovesItemFromClosedToArchive() { sut.CreateTask(taskId, TaskDescription); IEnumerable <Task> initialBacklogTasks = sut.GetBacklogTasks(); var id = initialBacklogTasks.First().Id; sut.SheduleTask(id); sut.BeginWorkOnTask(id); sut.CloseTask(id); sut.ArchiveTasks(); IDictionary <DateTime, IEnumerable <Task> > archivedTasks = sut.GetArchivedTasks(); IEnumerable <Task> closedTasks = sut.GetClosedTasks(); archivedTasks[archivedTasks.Keys.First()].First().Description.ShouldEqual(TaskDescription); closedTasks.Count().ShouldEqual(0); }