public void GetLogEntriesForCacheAndUserTest() { const int cacheId = 497; const int userId = 225; IList <LogEntry> expected = new List <LogEntry>(); expected.Add(new LogEntry(6922, cacheId, userId, new DateTime(2007, 4, 10), false, "viel zu schwer, fast unmöglich")); expected.Add(new LogEntry(6926, cacheId, userId, new DateTime(2008, 1, 13), true, "diesmal gings besser")); IList <LogEntry> actual = target.GetLogEntriesForCacheAndUser(cacheId, userId); Assert.AreEqual(expected.Count, actual.Count); foreach (LogEntry entry in expected) { Assert.IsTrue(actual.Contains(entry)); } }