public void GetNewNewsCatchServerError()
 {
     using (var client = new Rfc977NntpClient())
     {
         client.Connect(Server);
         client.ProtocolLogger = Console.Error;
         try
         {
             foreach (var s in client.RetrieveNewNews("comp.sys.mac.*", DateTime.Now.AddDays(-1.0)))
             {
             }
         }
         catch (NntpResponseException exception)
         {
             if (exception.LastResponseCode == 502 || exception.LastResponseCode == 480)
                 return;
             Assert.Fail("Expected a error " + exception.LastResponseCode);
         }
     }
 }
 public void GetNewNews()
 {
     using (var client = new Rfc977NntpClient())
     {
         client.Connect(Server);
         foreach (var s in client.RetrieveNewNews("comp.sys.mac.*", DateTime.Now.AddDays(-1.0)))
         {
         }
     }
 }