File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
test/System.Linq.Dynamic.Core.Tests/Parser Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -87,4 +87,31 @@ public void Parse_Aggregate_Sum_In_Sum_With_Predicate_On_Array()
8787 // Assert
8888 parser . Parse ( typeof ( double ) ) ;
8989 }
90+
91+ [ Fact ]
92+ public void Parse_Aggregate_Sum_In_Sum_In_Sum_With_Predicate_On_ArrayArray ( )
93+ {
94+ // Arrange
95+ var childType = DynamicClassFactory . CreateType (
96+ [
97+ new DynamicProperty ( "DoubleArrayArray" , typeof ( double [ ] [ ] ) )
98+ ] ) ;
99+
100+ var parentType = DynamicClassFactory . CreateType (
101+ [
102+ new DynamicProperty ( "SubFoos" , childType . MakeArrayType ( ) )
103+ ] ) ;
104+
105+ // Act
106+ var parser = new ExpressionParser (
107+ [
108+ Expression . Parameter ( parentType , "Foo" )
109+ ] ,
110+ "Foo.SubFoos.Sum(s => s.DoubleArrayArray.Sum(x => x.Sum()))" ,
111+ [ ] ,
112+ new ParsingConfig ( ) ) ;
113+
114+ // Assert
115+ parser . Parse ( typeof ( double ) ) ;
116+ }
90117}
You can’t perform that action at this time.
0 commit comments