public void GetMutlipleArticlesBodies()
        {
            using (var client = new Rfc977NntpClient())
            {
                client.ProtocolLogger = Console.Error;
                client.Connect(Server);
                client.SelectNewsgroup(TestNewsGroup);

                var d = client.RetrieveArticleHeader();

                Assert.Greater(client.CurrentGroup.EstimatedCount, 5, "Not an error. This test assumes 5 available articles.");
                for (var i = 0; i < 5; i++)
                {
                    foreach (var b in client.RetrieveArticleBody())
                    {
                    }
                }
            }
        }
        public void GetSingleArticleBodyWithProcessors()
        {
            using (var client = new Rfc977NntpClient())
            {
                client.Connect(Server);
                client.SelectNewsgroup(TestNewsGroup);

                var d = client.RetrieveArticleHeader();
                var ap = new ArticleProcessor();
                client.RetrieveArticle(ap, ap);
                Assert.IsTrue(ap.IsValid(), "Didn't read header line or body text lines.");
            }
        }
        public void GetAllHeadersForArticleRangeInLoop()
        {
            using (var client = new Rfc977NntpClient())
            {
                client.Connect(Server);
                client.SelectNewsgroup(TestNewsGroup);

                for (var i = client.CurrentGroup.LastArticleId - 20; i < client.CurrentGroup.LastArticleId; i++)
                {
                    try
                    {
                        client.RetrieveArticleHeader(i);
                    }
                    catch (NntpResponseException error)
                    {
                        if (error.LastResponseCode == 423)
                        {
                            continue;
                        }
                    }
                }
            }
        }