public void TasksString() { var taskListText = @"- One task - another task "; var list = new HeapsTodoTaskList(taskListText); Assert.AreEqual(2, list.Count); Assert.AreEqual("One task", list[0].MainBody); Assert.AreEqual("another task", list[1].MainBody); Assert.AreEqual(taskListText, list.PrintList()); }
public void TasksStringWithNotes() { var taskListText = @"- One task ```with notes that span multiple lines and have content``` - another task ```with an unclosed Note "; var list = new HeapsTodoTaskList(taskListText); Assert.AreEqual(2, list.Count); Assert.AreEqual("One task", list[0].MainBody); Assert.AreEqual("another task", list[1].MainBody); Assert.AreEqual(taskListText + "```\r\n", list.PrintList()); }