public void GetNewGroupsSimple()
 {
     using (var client = new Rfc977NntpClient())
     {
         client.Connect(Server);
         foreach (var h in client.RetrieveNewNewsgroups(DateTime.Now.AddMonths(-1)))
         {
         }
     }
 }
        public void GetNewGroupsDateBoundaries()
        {
            using (var client = new Rfc977NntpClient())
            {
                client.Connect(Server);
                var now = DateTime.Now;
                var target = new DateTime(now.Year, now.Month, 1);

                foreach (var h in client.RetrieveNewNewsgroups(target.AddMonths(-1)))
                {
                }

                // Now, switch the day to an invalid month number, this tests to make sure the
                // date reformating in the library has the correct order (27 not a valid month).
                target = new DateTime(now.Year, now.Month, 27);

                foreach (var h in client.RetrieveNewNewsgroups(target.AddMonths(-1)))
                {
                }
            }
        }