示例#1
0
        public void OnePageScrapeTest()
        {
            int numberOfRequestedPosts = 1;

            ILauncher start = new FakeLauncher();

            start.initialize();

            Assert.AreEqual(start.GetPosts(numberOfRequestedPosts).Count, numberOfRequestedPosts);
        }
示例#2
0
        public void ThreePageScrapeTest()
        {
            int numberOfRequestedPosts = 70;

            numberOfPagesToScrape = calculatePages(numberOfRequestedPosts);
            List <PostResponseModel> postsList = new List <PostResponseModel>();

            ILauncher start = new FakeLauncher();

            start.initialize();

            Assert.AreEqual(start.GetPosts(numberOfRequestedPosts).Count, numberOfRequestedPosts);
        }