File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
tests/MongoDB.Driver.Tests Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
16
16
using System ;
17
+ using System . Linq ;
17
18
using FluentAssertions ;
18
19
using MongoDB . Bson ;
19
20
using MongoDB . Bson . Serialization ;
@@ -39,6 +40,7 @@ public void Ascending_Typed()
39
40
40
41
Assert ( subject . Ascending ( x => x . FirstName ) , "{fn: 1}" ) ;
41
42
Assert ( subject . Ascending ( "FirstName" ) , "{fn: 1}" ) ;
43
+ Assert ( subject . Ascending ( user => user . Interviews . Select ( job => job . Title ) ) , "{'Interviews.Title': 1}" ) ;
42
44
}
43
45
44
46
[ Fact ]
@@ -110,6 +112,7 @@ public void Descending_Typed()
110
112
111
113
Assert ( subject . Descending ( x => x . FirstName ) , "{fn: -1}" ) ;
112
114
Assert ( subject . Descending ( "FirstName" ) , "{fn: -1}" ) ;
115
+ Assert ( subject . Descending ( user => user . Interviews . Select ( job => job . Title ) ) , "{'Interviews.Title': -1}" ) ;
113
116
}
114
117
115
118
[ Fact ]
You can’t perform that action at this time.
0 commit comments