public virtual void AddCustomAfter() { PageRange range = new PageRange(); range.AddPageRangePart(new PageRange.PageRangePartAfter(3)); NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(5), JavaUtil.ArraysAsList(3, 4, 5)); }
public virtual void AddCustomEven() { PageRange range = new PageRange(); range.AddPageRangePart(PageRange.PageRangePartOddEven.EVEN); NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(5), JavaUtil.ArraysAsList(2, 4)); }
public virtual void AddCustomAnd() { PageRange range = new PageRange(); PageRange.IPageRangePart odd = PageRange.PageRangePartOddEven.ODD; PageRange.IPageRangePart seq = new PageRange.PageRangePartSequence(2, 14); PageRange.IPageRangePart and = new PageRange.PageRangePartAnd(odd, seq); range.AddPageRangePart(and); NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(15), JavaUtil.ArraysAsList(3, 5, 7, 9, 11, 13) ); }