public void EvaluateReturnsTrueIfSubExpressionReturnsTypedLiteral() { IsLiteral expression = new IsLiteral(new GraphMemberExpression(new TypedLiteral("scooby", "http://example.com/dog"))); Bindings bindings = new Bindings(); Assert.AreEqual(true, expression.Evaluate(bindings)); }
public void EvaluateReturnsFalseIfSubExpressionDoesntReturnPlainLiteralOrTypedLiteral() { IsLiteral expression = new IsLiteral(new GraphMemberExpression(new BlankNode())); Bindings bindings = new Bindings(); Assert.AreEqual(false, expression.Evaluate(bindings)); }
public void EvaluateReturnsTrueIfSubExpressionReturnsPlainLiteral() { IsLiteral expression = new IsLiteral(new GraphMemberExpression(new PlainLiteral("scooby"))); Bindings bindings = new Bindings(); Assert.AreEqual(true, expression.Evaluate(bindings)); }