public void testExpectedInput() { XmlNode testNode = StaticHelpers.getNode("<version/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.version(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("Unknown", this.mockBotTagHandler.Transform()); }
public void testBadInput() { XmlNode testNode = getNode("<vorsion/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.version(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); }
public void testBadInput() { XmlNode testNode = StaticHelpers.getNode("<vorsion/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.version(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }