public void ShouldOnlyHaveOneOfEachFlagSet()
        {
            // arrange
            PageLinkCentredAlgorithm alg = new PageLinkCentredAlgorithm();

            // act
            IEnumerable<PageLink> links = alg.GetPages(0, 6, 6); // gets all links

            // assert
            Assert.IsTrue(1 == links.Where(l => l.IsSelected).Count());
            Assert.IsTrue(1 == links.Where(l => l.IsFirst).Count());
            Assert.IsTrue(1 == links.Where(l => l.IsLast).Count());
        }
        private List<PageLink> GetPages(int pageIndex)
        {
            PageLinkCentredAlgorithm alg = new PageLinkCentredAlgorithm();

            return alg.GetPages(pageIndex, k_pageCount, k_nrPagesPerPage).ToList();
        }
        public void ShouldHaveCorrectIndexNumbersWhenLinksPerPageGreaterThanPages()
        {
            // arrange
            PageLinkCentredAlgorithm alg = new PageLinkCentredAlgorithm();

            // act
            List<PageLink> links = alg.GetPages(0, 5, 6).ToList(); // gets all links

            // assert
            for (int i = 0; i < 5; i++)
            {
                Assert.AreEqual(i, links[i].Index);
            }
        }