Inheritance: IPagedCollectionTester
コード例 #1
0
        public void GetPagedLogEntriesHandlesPagingProperly(int total, int pageSize, int expectedPageCount,
                                                            int itemsCountOnLastPage)
        {
            Config.CreateBlog("", "username", "password", _hostName, "blog");
            BlogRequest.Current.Blog = Config.GetBlog(_hostName, "blog");
            var tester = new LogEntryCollectionTester();

            AssertPagedCollection(tester, expectedPageCount, itemsCountOnLastPage, pageSize, total);
        }
コード例 #2
0
 public void GetPagedLogEntriesHandlesPagingProperly(int total, int pageSize, int expectedPageCount, int itemsCountOnLastPage)
 {
     Assert.IsTrue(Config.CreateBlog("", "username", "password", this.hostName, "blog"));
     IPagedCollectionTester tester = new LogEntryCollectionTester();
     AssertPagedCollection(tester, expectedPageCount, itemsCountOnLastPage, pageSize, total);
 }