public void testBadIndex() { XmlNode testNode = StaticHelpers.getNode("<topicstar index=\"two\"/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }
public void testAtomic() { XmlNode testNode = StaticHelpers.getNode("<topicstar/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("second star", this.mockBotTagHandler.Transform()); }
public void testOutOfBounds() { XmlNode testNode = getNode("<topicstar index=\"3\"/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.topicstar(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); }