public void ConnectionDefaultWithLogging() { using (var client = new Rfc977NntpClient()) { client.ProtocolLogger = Console.Error; client.Connect(Server); foreach (var s in client.RetrieveHelp()) { } client.ProtocolLogger = null; foreach (var s in client.RetrieveHelp()) { } } }
public void CheckIfHelpIsImplemented() { using (var client = new Rfc977NntpClient()) { client.Connect(Server); foreach (var s in client.RetrieveHelp()) { Console.WriteLine(s); } } }