Exemple #1
0
        public void testWithNoListItems()
        {
            XmlNode testNode          = getNode("<random/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.random(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Equal("", mockBotTagHandler.Transform());
        }
Exemple #2
0
        public void testWithValidData()
        {
            XmlNode testNode          = getNode(@"<random>
    <li>random 1</li>
    <li>random 2</li>
    <li>random 3</li>
    <li>random 4</li>
    <li>random 5</li>
</random>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.random(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            Assert.Contains(mockBotTagHandler.Transform(), this.possibleResults);
        }