public void testNoMatches() { XmlNode testNode = StaticHelpers.getNode("<gender>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</gender>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gender(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS", this.mockBotTagHandler.Transform()); }
public void testNonAtomic() { XmlNode testNode = StaticHelpers.getNode("<gender> HE SHE TO HIM FOR HIM WITH HIM ON HIM IN HIM TO HER FOR HER WITH HER ON HER IN HER HIS HER HIM </gender>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gender(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual(" she he to her for her with her on her in her to him for him with him on him in him her his her ", this.mockBotTagHandler.Transform()); }
public void testEmptyInput() { XmlNode testNode = StaticHelpers.getNode("<gender/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gender(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); this.mockQuery.InputStar.Clear(); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }
public void testAtomic() { XmlNode testNode = StaticHelpers.getNode("<gender/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.gender(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); this.mockQuery.InputStar.Insert(0, " HE SHE TO HIM TO HER HIS HER HIM "); Assert.AreEqual(" she he to her to him her his her ", this.mockBotTagHandler.Transform()); }