public void DownloadTopStories() { //Arrange int actualNumberOfStories; const int expectedNumberOfStories = StoriesConstants.NumberOfStories; //Act actualNumberOfStories = NewsPage.GetStoryList().Count; //Assert Assert.AreEqual(expectedNumberOfStories, actualNumberOfStories); }
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); }
public void ReadStory() { //Arrange var topStory = NewsPage.GetStoryList().First(); //Act App.Tap(topStory.Title); //Assert if (App is iOSApp) { Assert.IsTrue(NewsPage.IsBrowserOpen); } }
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); }