public void testExpectedInputIndexOutOfBounds() { XmlNode testNode = getNode("<star index=\"3\"/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); }
public void testBadInputTagName() { XmlNode testNode = getNode("<stor index=\"1\"/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("", mockBotTagHandler.Transform()); }
public void testExpectedInput() { XmlNode testNode = getNode("<star/>"); var mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode); Assert.Equal("second star", mockBotTagHandler.Transform()); }
public void testBadInputAttributeValue() { XmlNode testNode = StaticHelpers.getNode("<star index=\"one\"/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }
public void testExpectedInputIndexSecond() { XmlNode testNode = StaticHelpers.getNode("<star index=\"2\"/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("first star", this.mockBotTagHandler.Transform()); }
public void testBadInputTagName() { XmlNode testNode = StaticHelpers.getNode("<stor index=\"1\"/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }
public void testExpectedInputIndexOutOfBounds() { XmlNode testNode = StaticHelpers.getNode("<star index=\"3\"/>"); this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.star(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode); Assert.AreEqual("", this.mockBotTagHandler.Transform()); }