コード例 #1
0
ファイル: person2TagTests.cs プロジェクト: rlebowitz/Aimlbot
        public void testNonAtomic()
        {
            XmlNode testNode = StaticHelpers.getNode("<person2> WITH YOU TO YOU ME MY YOUR </person2>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual(" with me to me you your my ", this.mockBotTagHandler.Transform());
        }
コード例 #2
0
ファイル: person2TagTests.cs プロジェクト: rlebowitz/Aimlbot
        public void testNoMatches()
        {
            XmlNode testNode = StaticHelpers.getNode("<person2>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</person2>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual("THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS", this.mockBotTagHandler.Transform());
        }
コード例 #3
0
ファイル: person2TagTests.cs プロジェクト: cberberian/Brain
 public void testEmptyInput()
 {
     XmlNode testNode = StaticHelpers.getNode("<person2/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     this.mockQuery.InputStar.Clear();
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }
コード例 #4
0
ファイル: person2TagTests.cs プロジェクト: cberberian/Brain
 public void testAtomic()
 {
     XmlNode testNode = StaticHelpers.getNode("<person2/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     this.mockQuery.InputStar.Insert(0, " WITH YOU TO YOU ME MY YOUR ");
     Assert.AreEqual(" with me to me you your my ", this.mockBotTagHandler.Transform());
 }
コード例 #5
0
ファイル: person2TagTests.cs プロジェクト: rlebowitz/Aimlbot
        public void testEmptyInput()
        {
            XmlNode testNode = StaticHelpers.getNode("<person2/>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            this.mockQuery.InputStar.Clear();
            Assert.AreEqual("", this.mockBotTagHandler.Transform());
        }
コード例 #6
0
ファイル: person2TagTests.cs プロジェクト: kjunghans/AIMLBot
        public void testAtomic()
        {
            XmlNode testNode          = getNode("<person2/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            this.mockQuery.InputStar.Insert(0, " WITH YOU TO YOU ME MY YOUR ");
            Assert.Equal(" with me to me you your my ", mockBotTagHandler.Transform());
        }
コード例 #7
0
ファイル: person2TagTests.cs プロジェクト: cberberian/Brain
 public void testNoMatches()
 {
     XmlNode testNode = StaticHelpers.getNode("<person2>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</person2>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person2(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     Assert.AreEqual("THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS", this.mockBotTagHandler.Transform());
 }