public void MaxValueIsCorrectWhenCurrentValueInGaps() { HashSet <int> gaps = new HashSet <int>(new List <int> { 2 }); IndexIterator ii = new IndexIterator(gaps, 2); Assert.AreEqual(1, ii.MaxIndex()); }
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); }
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()); }