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