示例#1
0
        public double WhenIPressGenerateLoremIpsumTimesAndCountTheAverageResult(int p0)
        {
            int paragraphs_Sum = 0;

            for (int i = 0; i < p0; i++)
            {
                FeedPage feed = homePage.PressGenerateLoremIpsum();
                paragraphs_Sum += feed.CountParagraphsContainingWord("lorem");
                feed.GoBack();
            }
            return((double)paragraphs_Sum / p0);
        }
示例#2
0
        public double CountWordsInParagraphs(int timesReload, IWebDriver driver)
        {
            HomePage homePage       = new HomePage(driver);
            int      paragraphs_Sum = 0;

            for (int i = 0; i < timesReload; i++)
            {
                FeedPage feedPage = homePage.PressGenerateLoremIpsum();
                paragraphs_Sum += feedPage.CountParagraphsContainingWord("lorem");
                feedPage.GoBack();
            }
            return((double)paragraphs_Sum / timesReload);
        }