Esempio n. 1
0
        public void testEmptyInput()
        {
            XmlNode testNode          = getNode("<formal/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.formal(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
Esempio n. 2
0
        public void testExpectedCapitalizedInput()
        {
            XmlNode testNode          = getNode("<formal>THIS IS A TEST</formal>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.formal(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("This Is A Test", mockBotTagHandler.Transform());
        }
Esempio n. 3
0
        public void testExpectedInput()
        {
            XmlNode testNode = StaticHelpers.getNode("<formal>this is a test</formal>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.formal(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("This Is A Test", this.mockBotTagHandler.Transform());
        }
Esempio n. 4
0
 public void testEmptyInput()
 {
     XmlNode testNode = StaticHelpers.getNode("<formal/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.formal(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }
Esempio n. 5
0
 public void testExpectedCapitalizedInput()
 {
     XmlNode testNode = StaticHelpers.getNode("<formal>THIS IS A TEST</formal>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.formal(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("This Is A Test", this.mockBotTagHandler.Transform());
 }