public void processInfoForDateTest() { PTDate date = new PTDate(1, DateTime.Now.Date); PTDate otherDate = new PTDate(2, DateTime.Today + new TimeSpan(1, 0, 0, 0)); List <PTProcessInfo> expected = new List <PTProcessInfo>() { new PTProcessInfo(1, "name1", new TimeSpan(0, 5, 0)), new PTProcessInfo(2, "name2", new TimeSpan(0, 75, 0)), new PTProcessInfo(3, "name3", new TimeSpan(1, 5, 0)) }; PTProcessInfo otherInfo = new PTProcessInfo(4, "name4", new TimeSpan(1, 25, 0)); PTDatabase.InsertProcessInfo(expected[0], date); PTDatabase.InsertProcessInfo(expected[1], date); PTDatabase.InsertProcessInfo(expected[2], date); PTDatabase.InsertProcessInfo(otherInfo, otherDate); List <PTProcessInfo> actual = PTDatabase.ProcessInfoForDate(date); CollectionAssert.AreEqual(expected, actual); }