Contains() public method

public Contains ( int idx ) : bool
idx int
return bool
コード例 #1
0
ファイル: IndexListTest.cs プロジェクト: Robin--/Warewolf
        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));
        }