Example #1
0
        public void testBadIndex()
        {
            XmlNode testNode = StaticHelpers.getNode("<topicstar index=\"two\"/>");

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

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("second star", this.mockBotTagHandler.Transform());
        }
Example #3
0
        public void testOutOfBounds()
        {
            XmlNode testNode          = getNode("<topicstar index=\"3\"/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
Example #4
0
 public void testBadIndex()
 {
     XmlNode testNode = StaticHelpers.getNode("<topicstar index=\"two\"/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }
Example #5
0
 public void testAtomic()
 {
     XmlNode testNode = StaticHelpers.getNode("<topicstar/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("second star", this.mockBotTagHandler.Transform());
 }