public void testSRAIBad() { XmlNode testNode = getNode("<se/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); }
public void testSRAIRecursion() { XmlNode testNode = StaticHelpers.getNode("<sr/>"); this.mockQuery.InputStar.Insert(0,"srainested"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("Test passed.", this.mockBotTagHandler.Transform()); }
public void testSRAIEmpty() { XmlNode testNode = StaticHelpers.getNode("<sr/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }
public void testSRAIRecursion() { XmlNode testNode = StaticHelpers.getNode("<sr/>"); this.mockQuery.InputStar.Insert(0, "srainested"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("Test passed.", this.mockBotTagHandler.Transform()); }
public void testSRAIWithValidInput() { XmlNode testNode = getNode("<sr/>"); this.mockQuery.InputStar.Insert(0, "sraisucceeded"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("Test passed.", mockBotTagHandler.Transform()); }
public void testSRAIBad() { XmlNode testNode = StaticHelpers.getNode("<se/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }