Example #1
0
        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());
        }
Example #2
0
        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());
        }
Example #3
0
 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());
 }
Example #4
0
 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());
 }
Example #5
0
        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());
        }
Example #6
0
        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());
        }
Example #7
0
 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());
 }
Example #8
0
 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());
 }