示例#1
0
        public void DownloadTopStories()
        {
            //Arrange
            int       actualNumberOfStories;
            const int expectedNumberOfStories = StoriesConstants.NumberOfStories;

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

            //Assert
            Assert.AreEqual(expectedNumberOfStories, actualNumberOfStories);
        }
示例#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);
        }
示例#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);
            }
        }
示例#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);
        }