Esempio n. 1
0
        public async Task TestReadCommunityHomeURLAsync()
        {
            //This case is that the community has more than page of homes
            List <string> URLList = await CommunityHomeListPageHandler.ReadCommunityHomeURL("https://xa.ke.com/ershoufang/c3820028098488153/");

            Assert.IsTrue(URLList.Count > 0);
        }
Esempio n. 2
0
        public async Task TestReadCommunityHomeListPageNumberAsync()
        {
            //This case is that the community has more than page of homes
            int pageNum = await CommunityHomeListPageHandler.ReadCommunityHomeListPageNumber("https://xa.ke.com/ershoufang/c3820028098488153/");

            Assert.IsTrue(pageNum > 0);

            //This case is that the community only one page of homes
            int pageNum1 = await CommunityHomeListPageHandler.ReadCommunityHomeListPageNumber("https://xa.ke.com/ershoufang/c3811057680286/");

            Assert.IsTrue(pageNum1 == 1);
        }