Ejemplo n.º 1
0
        public void GivenPageWithMinPage_WhenGetHalfPageCalled_ThenSamePageSizeIsReturned()
        {
            var currentPageSize = 1;
            var newPageSize     = PageAdjuster.GetHalfPageSize(currentPageSize);

            newPageSize.Should().Be(currentPageSize);
        }
Ejemplo n.º 2
0
        public void GivenPageWithDefaultSize_WhenGetHalfPageCalled_ThenHalfPageSizeIsReturned()
        {
            var currentPageSize = DefaultPageSize;
            var newPageSize     = PageAdjuster.GetHalfPageSize(currentPageSize);

            newPageSize.Should().Be(DefaultPageSize / 2);
        }