public void EvaluateReturnsFalseIfSubExpressionDoesntReturnBlankNode() { IsBlank expression = new IsBlank(new GraphMemberExpression(new PlainLiteral("no"))); Bindings bindings = new Bindings(); Assert.AreEqual(false, expression.Evaluate(bindings)); }
public void EvaluateReturnsTrueIfSubExpressionReturnsBlankNode() { IsBlank expression = new IsBlank(new GraphMemberExpression(new BlankNode())); Bindings bindings = new Bindings(); Assert.AreEqual(true, expression.Evaluate(bindings)); }