Пример #1
0
        public void testBadIndex()
        {
            XmlNode testNode          = getNode("<thatstar index=\"two\"/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.thatstar(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
Пример #2
0
        public void testAtomic()
        {
            XmlNode testNode          = getNode("<thatstar/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.thatstar(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("second star", mockBotTagHandler.Transform());
        }