public void IndexOf_ReturnsMinusOneIfNotInList() { PageVirtualizingList<int> list = new PageVirtualizingList<int>(); list.UpdateCount(22, 10); list[2] = 8; list[10] = 42; int result = list.IndexOf(15); Assert.AreEqual(-1, result); }
public void IndexOf_ReturnsIndexOfItemInList() { PageVirtualizingList<int> list = new PageVirtualizingList<int>(); list.UpdateCount(22, 10); list[2] = 8; list[10] = 42; int result = list.IndexOf(42); Assert.AreEqual(10, result); }