AIMA.Test.Core.Unit.Logic.Propositional.Algorithms.PLResolutionTest.testPLResolveWithOneLiteralMatching C# (CSharp) Метод

testPLResolveWithOneLiteralMatching() приватный Метод

private testPLResolveWithOneLiteralMatching ( ) : void
Результат void
        public void testPLResolveWithOneLiteralMatching()
        {
            Sentence one = (Sentence)parser.parse("(A OR B)");
            Sentence two = (Sentence)parser.parse("((NOT B) OR C)");
            Sentence expected = (Sentence)parser.parse("(A OR C)");
            List<Sentence> resolvents = resolution.plResolve(one, two);
            Assert.AreEqual(1, resolvents.Count);
            Assert.IsTrue(resolvents.Contains(expected));
        }