예제 #1
0
        public void MaxValueIsCorrectWhenCurrentValueInGaps()
        {
            HashSet <int> gaps = new HashSet <int>(new List <int> {
                2
            });
            IndexIterator ii = new IndexIterator(gaps, 2);


            Assert.AreEqual(1, ii.MaxIndex());
        }
예제 #2
0
        public void IsEmptyIsCorrectWhenThreeElementAndIndex2And3Removed()
        {
            HashSet <int> gaps = new HashSet <int>(new List <int> {
                2, 3
            });
            IndexIterator ii = new IndexIterator(gaps, 3);

            Assert.AreEqual(1, ii.MaxIndex());
            Assert.IsFalse(ii.IsEmpty);
        }
예제 #3
0
        public void IsEmptyIsCorrectWhenTwoElementAndIndex2Removed()
        {
            var gaps = new HashSet <int>(new List <int> {
                2
            });
            var ii = new IndexIterator(gaps, 2);

            Assert.AreEqual(1, ii.MaxIndex());
            Assert.IsFalse(ii.IsEmpty);
        }
        public void IsEmptyIsCorrectWhenTwoElementAndIndex2Removed()
        {
            HashSet<int> gaps = new HashSet<int>(new List<int> { 2 });
            IndexIterator ii = new IndexIterator(gaps, 2);

            Assert.AreEqual(1, ii.MaxIndex());
            Assert.IsFalse(ii.IsEmpty);
        }
        public void MaxValueIsCorrectWhenCurrentValueInGaps()
        {
            HashSet<int> gaps = new HashSet<int>(new List<int> { 2 });
            IndexIterator ii = new IndexIterator(gaps, 2);

            
            Assert.AreEqual(1,ii.MaxIndex());
        }