コード例 #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);
        }
コード例 #4
0
        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);
        }
コード例 #5
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());
        }