示例#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
文件: Client.cs 项目: nishtown/Iris
 /// <summary>
 /// Fires the NumericalMessage event.
 /// </summary>
 /// <param name="numericalMessage">The numerical message.</param>
 protected void onNumericalMessage(NumericalMessage numericalMessage)
 {
     if (NumericalMessage != null)
         NumericalMessage(this, numericalMessage);
 }