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