public virtual void AddSingles() { PageRange range = new PageRange(); range.AddSinglePage(5); range.AddSinglePage(1); NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(7), JavaUtil.ArraysAsList(5, 1)); }
public virtual void AddSingleAndSequence() { PageRange range = new PageRange(); range.AddSinglePage(5); range.AddPageSequence(3, 8); NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(10), JavaUtil.ArraysAsList(5, 3, 4, 5, 6, 7, 8 )); }
public virtual void AddSequenceAndSingle() { PageRange range = new PageRange(); range.AddPageSequence(22, 27); range.AddSinglePage(25); NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(30), JavaUtil.ArraysAsList(22, 23, 24, 25, 26, 27, 25)); }