using System; using System.Collections.Generic; using System.Text; using NUnit.Framework; using TaskExplorer.Data; namespace TaskExplorer.Tests { [TestFixture] public class TestTaskRetrieval { [Test] public void Test1() { Store store = new Store(); Task task1 = store.CreateTask("Move the boxes"); Task task2 = store.CreateTask("Hoover"); task2.AddPreRequisite(task1); List tasks = new List(store.Tasks); Assert.AreEqual(2, tasks.Count); Assert.AreEqual(task1, tasks[0]); Assert.AreEqual(task2, tasks[1]); } } }