public void IndexList_UnitTest_ContainsOperatesAsExpected() { HashSet <int> gaps = new HashSet <int> { 1, 5 }; IndexList il = new IndexList(gaps, 5); Assert.IsFalse(il.Contains(1)); Assert.IsTrue(il.Contains(4)); }
public bool ContainsRow(int idx) { if (IsEmtpy) { return(false); } return(_myKeys.Contains(idx)); }
private void UpdateValue(int index, bool completed) { if (completed == false) { return; } if (IndexList.Contains(index)) { IndexList.RemoveSpecificItem(index); } }