public void ArrayAccess()
{
var expected = LinqExpression.ArrayAccess(
LinqExpression.Parameter(
typeof(int[])),
LinqExpression.Parameter(
typeof(int)));
using var g = new GraphEngine.Graph();
g.LoadFromString(@"
@prefix : <http://example.com/> .
:s
:arrayAccessArray [
:parameterType [
:typeName ""System.Int32[]"" ;
] ;
] ;
:arrayAccessIndexes (
[
:parameterType [
:typeName ""System.Int32"" ;
] ;
]
) ;
.
");
var s = g.GetUriNode(":s");
var actual = Expression.Parse(s).LinqExpression;
Console.WriteLine(actual.GetDebugView());
actual.Should().Be(expected);
}