コード例 #1
0
        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));
        }
コード例 #2
0
        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);
     }
 }