Beispiel #1
0
        public void testEmptyInput()
        {
            XmlNode testNode = StaticHelpers.getNode("<uppercase/>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.uppercase(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("", this.mockBotTagHandler.Transform());
        }
Beispiel #2
0
        public void testExpectedInput()
        {
            XmlNode testNode = StaticHelpers.getNode("<uppercase>this is a test</uppercase>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.uppercase(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("THIS IS A TEST", this.mockBotTagHandler.Transform());
        }
Beispiel #3
0
 public void testEmptyInput()
 {
     XmlNode testNode = StaticHelpers.getNode("<uppercase/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.uppercase(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }
Beispiel #4
0
 public void testExpectedInput()
 {
     XmlNode testNode = StaticHelpers.getNode("<uppercase>this is a test</uppercase>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.uppercase(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("THIS IS A TEST", this.mockBotTagHandler.Transform());
 }