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