public void QuitMessage() { string message = ":Banane9 QUIT :Bye cruel world!"; Assert.IsTrue(Iris.Irc.ServerMessages.QuitMessage.IsCorrectFormat(message)); QuitMessage quitMessage = new QuitMessage(message); Assert.AreEqual<string>("Banane9", quitMessage.User); Assert.AreEqual<string>("Bye cruel world!", quitMessage.Message); }
/// <summary> /// Fires the QuitMessage event. /// </summary> /// <param name="quitMessage">The quit message.</param> protected void onQuitMessage(QuitMessage quitMessage) { if (QuitMessage != null) QuitMessage(this, quitMessage); }
private void client_QuitMessage(Client sender, QuitMessage quitMessage) { }