Example #1
0
        public void JoinParseTest()
        {
            var parser = new XG.Plugin.Irc.Parser.Types.Info.Join();

            EventArgs<Server, string> raisedEvent;
            parser.OnJoinChannel += (sender, e) => raisedEvent = e;

            raisedEvent = null;
            Parse(parser, "** Closing Connection You Must JOIN MG-CHAT As Well To Download - Your Download Will Be Canceled Now");
            Assert.AreEqual(Server, raisedEvent.Value1);
            Assert.AreEqual("#MG-CHAT", raisedEvent.Value2);
        }
Example #2
0
        public void JoinParseTest()
        {
            var parser = new XG.Plugin.Irc.Parser.Types.Info.Join();

            EventArgs<XG.Model.Domain.Server, string> raisedEvent;
            parser.OnJoinChannel += (sender, e) => raisedEvent = e;

            raisedEvent = null;
            Parse(parser, Connection, CreateIrcEventArgs(Channel.Name, Bot.Name, "** Closing Connection You Must JOIN MG-CHAT As Well To Download - Your Download Will Be Canceled Now", ReceiveType.QueryNotice));
            Assert.AreEqual(Server, raisedEvent.Value1);
            Assert.AreEqual("#MG-CHAT", raisedEvent.Value2);
        }
Example #3
0
        public void JoinParseTest()
        {
            var parser = new XG.Plugin.Irc.Parser.Types.Info.Join();

            EventArgs <Server, string> raisedEvent;

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

            raisedEvent = null;
            Parse(parser, "** Closing Connection You Must JOIN MG-CHAT As Well To Download - Your Download Will Be Canceled Now");
            Assert.AreEqual(Server, raisedEvent.Value1);
            Assert.AreEqual("#MG-CHAT", raisedEvent.Value2);
        }