AIMA.Test.Core.Unit.Logic.FOL.SubstVisitorTest.testParanthisedSingleVariable C# (CSharp) 메소드

testParanthisedSingleVariable() 개인적인 메소드

private testParanthisedSingleVariable ( ) : void
리턴 void
        public void testParanthisedSingleVariable()
        {
            Sentence beforeSubst = parser.parse("((( King(x))))");
            Sentence expectedAfterSubst = parser.parse("King(John) ");

            Dictionary<Variable, Term> p = new Dictionary<Variable, Term>();
            p.Add(new Variable("x"), new Constant("John"));

            Sentence afterSubst = sv.subst(p, beforeSubst);
            Assert.AreEqual(expectedAfterSubst, afterSubst);
            Assert.AreEqual(parser.parse("((( King(x))))"), beforeSubst);
        }
    }