public void CanCreateBNodeFunctionWithoutParameter()
        {
            // when
            BlankNodeExpression bnode = Builder.BNode();

            // then
            Assert.IsTrue(bnode.Expression is BNodeFunction);
            Assert.IsFalse(bnode.Expression.Arguments.Any());
        }
        public void CanCreateBNodeFunctionWithStringLiteralExpressionParameter()
        {
            // given
            var expression = new TypedLiteralExpression <string>("str");

            // when
            BlankNodeExpression bnode = Builder.BNode(expression);

            // then
            Assert.IsTrue(bnode.Expression is BNodeFunction);
            Assert.AreSame(expression.Expression, bnode.Expression.Arguments.ElementAt(0));
        }
        public void CanCreateBNodeFunctionWithSimpleLiteralExpressionParameter()
        {
            // given
            LiteralExpression expression = new LiteralExpression(new VariableTerm("S"));

            // when
            BlankNodeExpression bnode = Builder.BNode(expression);

            // then
            Assert.IsTrue(bnode.Expression is BNodeFunction);
            Assert.AreSame(expression.Expression, bnode.Expression.Arguments.ElementAt(0));
        }