예제 #1
0
        public void testBadIndex()
        {
            XmlNode testNode          = getNode("<topicstar index=\"two\"/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

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

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