Exemple #1
0
        void TestParse(string aMessage, string aExpectedCommand)
        {
            var parser = new XG.Plugin.Irc.Parser.Types.XdccList();
            EventArgs<XG.Model.Domain.Server, string, string> raisedEvent = null;
            parser.OnXdccList += (sender, e) => raisedEvent = e;

            Parse(parser, Connection, CreateIrcEventArgs(Channel.Name, Bot.Name, aMessage, ReceiveType.QueryNotice));
            Assert.AreEqual(Server, raisedEvent.Value1);
            Assert.AreEqual(Bot.Name, raisedEvent.Value2);
            Assert.AreEqual(aExpectedCommand, raisedEvent.Value3);
        }
Exemple #2
0
        void TestParse(string aMessage, string aExpectedCommand)
        {
            var parser = new XG.Plugin.Irc.Parser.Types.XdccList();
            EventArgs<Channel, string, string> raisedEvent = null;
            parser.OnXdccList += (sender, e) => raisedEvent = e;

            Parse(parser, aMessage);
            Assert.AreEqual(Channel, raisedEvent.Value1);
            Assert.AreEqual(Bot.Name, raisedEvent.Value2);
            Assert.AreEqual(aExpectedCommand, raisedEvent.Value3);
        }
        void TestParse(string aMessage, string aExpectedCommand)
        {
            var parser = new XG.Plugin.Irc.Parser.Types.XdccList();
            EventArgs <Channel, string, string> raisedEvent = null;

            parser.OnXdccList += (sender, e) => raisedEvent = e;

            Parse(parser, aMessage);
            Assert.AreEqual(Channel, raisedEvent.Value1);
            Assert.AreEqual(Bot.Name, raisedEvent.Value2);
            Assert.AreEqual(aExpectedCommand, raisedEvent.Value3);
        }