Example #1
0
            public void IsFalseWhenDifferentTotalItems()
            {
                PagingInfo differentTotalItems = new PagingInfo(7, 20, 1137);

                AssertInequality(samplePagingInfo, differentTotalItems);
            }
Example #2
0
            public void IsFalseWhenDifferentPageSize()
            {
                PagingInfo differentPageSize = new PagingInfo(7, 19, 1138);

                AssertInequality(samplePagingInfo, differentPageSize);
            }
Example #3
0
            public void IsTrueWhenHasAllPages()
            {
                PagingInfo samePagingInfo = new PagingInfo(7, 20, 1138, true);

                AssertEquality(this.samplePagingInfo, samePagingInfo);
            }
Example #4
0
            public void IsFalseWhenDifferentPageNumber()
            {
                PagingInfo differentPageNumber = new PagingInfo(8, 20, 1138);

                AssertInequality(samplePagingInfo, differentPageNumber);
            }
Example #5
0
            public void IsTrueWhenSame()
            {
                PagingInfo samePagingInfo = new PagingInfo(7, 20, 1138);

                AssertEquality(this.samplePagingInfo, samePagingInfo);
            }