Ejemplo n.º 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());
        }
Ejemplo n.º 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());
        }