コード例 #1
0
        public virtual void AddSequence()
        {
            PageRange range = new PageRange();

            range.AddPageSequence(11, 19);
            NUnit.Framework.Assert.AreEqual(range.GetQualifyingPageNums(16), JavaUtil.ArraysAsList(11, 12, 13, 14, 15,
                                                                                                   16));
        }
コード例 #2
0
        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
                                                                                                   ));
        }
コード例 #3
0
        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));
        }