Exemple #1
0
        public void testExpectedInputIndexOutOfBounds()
        {
            XmlNode testNode          = getNode("<star index=\"3\"/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
Exemple #2
0
        public void testBadInputTagName()
        {
            XmlNode testNode          = getNode("<stor index=\"1\"/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
Exemple #3
0
        public void testExpectedInput()
        {
            XmlNode testNode          = getNode("<star/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("second star", mockBotTagHandler.Transform());
        }
Exemple #4
0
        public void testBadInputAttributeValue()
        {
            XmlNode testNode = StaticHelpers.getNode("<star index=\"one\"/>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("", this.mockBotTagHandler.Transform());
        }
Exemple #5
0
        public void testExpectedInputIndexSecond()
        {
            XmlNode testNode = StaticHelpers.getNode("<star index=\"2\"/>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("first star", this.mockBotTagHandler.Transform());
        }
Exemple #6
0
 public void testBadInputTagName()
 {
     XmlNode testNode = StaticHelpers.getNode("<stor index=\"1\"/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }
Exemple #7
0
 public void testExpectedInputIndexOutOfBounds()
 {
     XmlNode testNode = StaticHelpers.getNode("<star index=\"3\"/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }