コード例 #1
0
        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())
                    {
                    }
                }
            }
        }