コード例 #1
0
ファイル: personTagTests.cs プロジェクト: rlebowitz/Aimlbot
        public void testNonAtomic()
        {
            XmlNode testNode = StaticHelpers.getNode("<person> I WAS HE WAS SHE WAS I AM I ME MY MYSELF </person>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            Assert.AreEqual(" he or she was I was I was he or she is he or she him or her his or her him or herself ", this.mockBotTagHandler.Transform());
        }
コード例 #2
0
ファイル: personTagTests.cs プロジェクト: rlebowitz/Aimlbot
        public void testNoMatches()
        {
            XmlNode testNode = StaticHelpers.getNode("<person>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</person>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(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
ファイル: personTagTests.cs プロジェクト: cberberian/Brain
 public void testEmptyInput()
 {
     XmlNode testNode = StaticHelpers.getNode("<person/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     this.mockQuery.InputStar.Clear();
     Assert.AreEqual("", this.mockBotTagHandler.Transform());
 }
コード例 #4
0
ファイル: personTagTests.cs プロジェクト: cberberian/Brain
 public void testAtomic()
 {
     XmlNode testNode = StaticHelpers.getNode("<person/>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
     this.mockQuery.InputStar.Insert(0, " I WAS HE WAS SHE WAS I AM I ME MY MYSELF ");
     Assert.AreEqual(" he or she was I was I was he or she is he or she him or her his or her him or herself ", this.mockBotTagHandler.Transform());
 }
コード例 #5
0
ファイル: personTagTests.cs プロジェクト: rlebowitz/Aimlbot
        public void testEmptyInput()
        {
            XmlNode testNode = StaticHelpers.getNode("<person/>");

            this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(this.mockBot, this.mockUser, this.mockQuery, this.mockRequest, this.mockResult, testNode);
            this.mockQuery.InputStar.Clear();
            Assert.AreEqual("", this.mockBotTagHandler.Transform());
        }
コード例 #6
0
        public void testAtomic()
        {
            XmlNode testNode          = getNode("<person/>");
            var     mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(this.mockBot, this.mockUser, this.mockQuery, mockRequest, mockResult, testNode);

            this.mockQuery.InputStar.Insert(0, " I WAS HE WAS SHE WAS I AM I ME MY MYSELF ");
            Assert.Equal(" he or she was I was I was he or she is he or she him or her his or her him or herself ", mockBotTagHandler.Transform());
        }
コード例 #7
0
ファイル: personTagTests.cs プロジェクト: cberberian/Brain
 public void testNoMatches()
 {
     XmlNode testNode = StaticHelpers.getNode("<person>THE QUICK BROWN FOX JUMPED OVER THE LAZY DOGS</person>");
     this.mockBotTagHandler = new AIMLbot.AIMLTagHandlers.person(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());
 }