コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        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());
        }
コード例 #4
0
ファイル: thatstarTagTests.cs プロジェクト: cberberian/Brain
 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());
 }
コード例 #5
0
ファイル: thatstarTagTests.cs プロジェクト: cberberian/Brain
 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());
 }