public void testSRAIBad() { XmlNode testNode = getNode("<srui>srainested</srui>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.srai(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); }
public void testSRAIWithValidInput() { XmlNode testNode = getNode("<srai>sraisucceeded</srai>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.srai(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("Test passed.", mockBotTagHandler.Transform()); }