public void DownloadTopStories()
        {
            //Arrange
            int       actualNumberOfStories;
            const int expectedNumberOfStories = StoriesConstants.NumberOfStories;

            //Act
            actualNumberOfStories = NewsPage.GetStoryList().Count;

            //Assert
            Assert.AreEqual(expectedNumberOfStories, actualNumberOfStories);
        }
Example #2
0
        public void DownloadTopStories()
        {
            //Arrange
            int       actualNumberOfStories;
            const int requestedNumberOfStories = StoriesConstants.NumberOfStories;

            //Act
            actualNumberOfStories = NewsPage.GetStoryList().Count;

            //Assert
            Assert.GreaterOrEqual(requestedNumberOfStories, actualNumberOfStories);
            Assert.Greater(actualNumberOfStories, 0);
        }
Example #3
0
        public void ReadStory()
        {
            //Arrange
            var topStory = NewsPage.GetStoryList().First();

            //Act
            App.Tap(topStory.Title);

            //Assert
            if (App is iOSApp)
            {
                Assert.IsTrue(NewsPage.IsBrowserOpen);
            }
        }
Example #4
0
        public void DownloadTopStories()
        {
            //Arrange
            int       actualNumberOfStories;
            const int expectedNumberOfStories = StoriesConstants.NumberOfStories;

            //Act
            actualNumberOfStories = NewsPage.GetStoryList().Count;

            App.Screenshot("Top Stories Downloaded");

            //Assert
            Assert.LessOrEqual(actualNumberOfStories, expectedNumberOfStories);
            Assert.Greater(actualNumberOfStories, 0);
        }