public void testWithEmptyInput() { Assert.Equal(0, this.mockBot.Size); XmlNode testNode = getNode("<learn/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.learn(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); Assert.Equal(0, this.mockBot.Size); }
public void testWithBadInput() { Assert.Equal(0, this.mockBot.Size); XmlNode testNode = getNode("<learn>./nonexistent/Salutations.aiml</learn>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.learn(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); Assert.Equal(0, this.mockBot.Size); }