public void CheckRandomlyGeneratedTextParagraphsContainTheWord(string word, int times) { BusinessLogicLayer BLL = new BusinessLogicLayer(); List <int> countParagraphs = new List <int>(); for (int i = 0; i < times; i++) { countParagraphs.Add(BLL.CountRandomlyGeneratedTextParagraphsContainTheWordLorem(word)); BLL.GoToHomePage(); } double avg = countParagraphs.Average(); BLL.CheckValueBetweenExpectedValues(avg, 2, 3); }