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