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