Пример #1
0
        public void NumericalMessage()
        {
            string message = ":Server 401 Banane9 :No such nick/channel";

            Assert.IsTrue(Iris.Irc.ServerMessages.NumericalMessage.IsCorrectFormat(message));

            NumericalMessage numericalMessage = new NumericalMessage(message);

            Assert.AreEqual<string>("Server", numericalMessage.Server);
            Assert.AreEqual<NumericalMessageTypes>(NumericalMessageTypes.Error_NoSuchNick, numericalMessage.NumericalType);
        }
Пример #2
0
 /// <summary>
 /// Fires the NumericalMessage event.
 /// </summary>
 /// <param name="numericalMessage">The numerical message.</param>
 protected void onNumericalMessage(NumericalMessage numericalMessage)
 {
     if (NumericalMessage != null)
         NumericalMessage(this, numericalMessage);
 }