예제 #1
0
        public void testSRAIBad()
        {
            XmlNode testNode          = getNode("<srui>srainested</srui>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.srai(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
예제 #2
0
        public void testSRAIWithValidInput()
        {
            XmlNode testNode          = getNode("<srai>sraisucceeded</srai>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.srai(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

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