Exemple #1
0
        public void EvaluateReturnsFalseIfSubExpressionDoesntReturnBlankNode()
        {
            IsBlank  expression = new IsBlank(new GraphMemberExpression(new PlainLiteral("no")));
            Bindings bindings   = new Bindings();

            Assert.AreEqual(false, expression.Evaluate(bindings));
        }
Exemple #2
0
        public void EvaluateReturnsTrueIfSubExpressionReturnsBlankNode()
        {
            IsBlank expression = new IsBlank(new GraphMemberExpression(new BlankNode()));

            Bindings bindings = new Bindings();

            Assert.AreEqual(true, expression.Evaluate(bindings));
        }