File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Provider/src/FirebirdSql.EntityFrameworkCore.Firebird.FunctionalTests/Query Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1515
1616//$Authors = Jiri Cincura (jiri@cincura.net)
1717
18+ using System . Linq ;
19+ using System . Threading . Tasks ;
20+ using Microsoft . EntityFrameworkCore ;
1821using Microsoft . EntityFrameworkCore . Query ;
22+ using Xunit ;
1923using Xunit . Abstractions ;
2024
2125namespace FirebirdSql . EntityFrameworkCore . Firebird . FunctionalTests . Query
@@ -25,5 +29,13 @@ public class AsyncGearsOfWarQueryFbTest : AsyncGearsOfWarQueryTestBase<GearsOfWa
2529 public AsyncGearsOfWarQueryFbTest ( GearsOfWarQueryFbFixture fixture , ITestOutputHelper testOutputHelper )
2630 : base ( fixture )
2731 { }
32+
33+ // the original implementation has wrong assert
34+ public override async Task GroupBy_Select_sum ( )
35+ {
36+ using var ctx = CreateContext ( ) ;
37+ var result = await ctx . Missions . GroupBy ( m => m . CodeName ) . Select ( g => g . Sum ( m => m . Rating ) ) . ToListAsync ( ) ;
38+ Assert . Equal ( 6.3 , result . Sum ( ) ?? double . NaN , precision : 1 ) ;
39+ }
2840 }
2941}
You can’t perform that action at this time.
0 commit comments