SetMaxValue() public method

public SetMaxValue ( int idx, bool isEmpty ) : void
idx int
isEmpty bool
return void
コード例 #1
0
ファイル: IndexListTest.cs プロジェクト: Robin--/Warewolf
        public void IndexList_UnitTest_CanSetMaxValueWhenInGaps()
        {

            HashSet<int> gaps = new HashSet<int> { 1, 5 };
            IndexList il = new IndexList(gaps, 5);

            il.SetMaxValue(5, false);

            Assert.AreEqual(1, il.MinValue);
            Assert.AreEqual(5, il.MaxValue);
            Assert.AreEqual(3, il.Count());
        }