Beispiel #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());
        }
Beispiel #2
0
        public void testSRAIRecursion()
        {
            XmlNode testNode = getNode("<sr/>");

            this.mockQuery.InputStar.Insert(0, "srainested");
            var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.sr(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("Test passed.", mockBotTagHandler.Transform());
        }