public void testNonAtomic() { XmlNode testNode = StaticHelpers.getNode("<person2> WITH YOU TO YOU ME MY YOUR </person2>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual(" with me to me you your my ", this.mockBotTagHandler.Transform()); }
public void testNoMatches() { XmlNode testNode = StaticHelpers.getNode("<person2>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</person2>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(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 testEmptyInput() { XmlNode testNode = StaticHelpers.getNode("<person2/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(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("<person2/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); this.mockQuery.InputStar.Insert(0, " WITH YOU TO YOU ME MY YOUR "); Assert.AreEqual(" with me to me you your my ", this.mockBotTagHandler.Transform()); }
public void testAtomic() { XmlNode testNode = getNode("<person2/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); this.mockQuery.InputStar.Insert(0, " WITH YOU TO YOU ME MY YOUR "); Assert.Equal(" with me to me you your my ", mockBotTagHandler.Transform()); }