Example #1
0
 public void testGossipWithEmpty()
 {
     XmlNode testNode = StaticHelpers.getNode("<gossip/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gossip(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     this.mockBotTagHandler.Transform();
     Assert.AreEqual("", this.mockBot.LastLogMessage);
 }
Example #2
0
 public void testGossipWithGoodData()
 {
     XmlNode testNode = StaticHelpers.getNode("<gossip>this is gossip</gossip>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gossip(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     this.mockBotTagHandler.Transform();
     Assert.AreEqual("GOSSIP from user: 1, 'this is gossip'", this.mockBot.LastLogMessage);
 }
Example #3
0
        public void testGossipWithEmpty()
        {
            XmlNode testNode = StaticHelpers.getNode("<gossip/>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gossip(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            this.mockBotTagHandler.Transform();
            Assert.AreEqual("", this.mockBot.LastLogMessage);
        }
Example #4
0
        public void testGossipWithGoodData()
        {
            XmlNode testNode = StaticHelpers.getNode("<gossip>this is gossip</gossip>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gossip(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            this.mockBotTagHandler.Transform();
            Assert.AreEqual("GOSSIP from user: 1, 'this is gossip'", this.mockBot.LastLogMessage);
        }