public void EmptyArticleContentTest() { string[] urls = {"http://www.news.com.au/breaking-news/world/indon-says-2-arrested-for-myanmar-plot/story-e6frfkui-1226634619523", "http://www.elpasotimes.com/newupdated/ci_23175234/el-paso-man-arrested-charged-cocaine-possession", "http://www.twincities.com/crime/ci_23160767/st-paul-man-arrested-after-mother-shot-is", "http://www.news-record.com/news/1174493-91/three-arrested-in-home-invasion", "http://www.mercurynews.com/news/ci_23159399/teacher-arrested-allegedly-molesting-girls", "http://www.menafn.com/menafn/9c990483-5c0b-4bb9-87ff-8ade7ac1a9c2/BRIEF-Tulsa-man-arrested-on-drug-gun-complaints"}; List<Bing.NewsResult> bnrList = new List<Bing.NewsResult>(); foreach (var item in urls) { bnrList.Add(new Bing.NewsResult { Url = item }); } ArticleFinder af = new ArticleFinder(); var temp = af.GetResults(bnrList); int emptyCounter = 0; foreach (var item in temp) { if (string.IsNullOrEmpty(item.Content) || string.IsNullOrWhiteSpace(item.Content)) { emptyCounter++; } } Assert.Less(emptyCounter, 1); }