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()); }
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()); }
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()); }
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()); }
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()); }