public void GetAllHeadersForArticleRange() { using (var client = new Rfc977NntpClient()) { client.Connect(Server); client.SelectNewsgroup(TestNewsGroup); var count = 0; foreach (var h in client.RetrieveArticleHeaders(client.CurrentGroup.LastArticleId - 20, client.CurrentGroup.LastArticleId)) { if (count++ > 10) { break; } } Assert.LessOrEqual(10, count, "Not necessarily an error. Assumes newsgroup contains at least 10 articles."); } }