public void Contains_ReturnsFalseIfNotInList() { VirtualizingList<int> list = new VirtualizingList<int>(); list.UpdateCount(20); list[2] = 8; list[10] = 42; bool result = list.Contains(15); Assert.AreEqual(false, result); }
public void Contains_ReturnsTrueIfItemInList() { VirtualizingList<int> list = new VirtualizingList<int>(); list.UpdateCount(20); list[2] = 8; list[10] = 42; bool result = list.Contains(42); Assert.AreEqual(true, result); }