File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
tests/MongoDB.Driver.Tests Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,16 @@ public void Ascending_Typed()
49
49
Assert ( subject . Ascending ( "FirstName" ) , "{fn: 1}" ) ;
50
50
}
51
51
52
+ [ Fact ]
53
+ public void Calling_render_on_value_based_sort_should_throw ( )
54
+ {
55
+ var subject = CreateSubject < BsonDocument > ( ) ;
56
+
57
+ var exception = Record . Exception ( ( ) => subject . Ascending ( ) . Render ( new RenderArgs < BsonDocument > ( ) ) ) ;
58
+
59
+ exception . Should ( ) . BeOfType < InvalidOperationException > ( ) ;
60
+ }
61
+
52
62
[ Fact ]
53
63
public void Combine ( )
54
64
{
@@ -144,16 +154,6 @@ public void MetaTextScore()
144
154
Assert ( subject . MetaTextScore ( "awesome" ) , "{awesome: {$meta: 'textScore'}}" ) ;
145
155
}
146
156
147
- [ Fact ]
148
- public void Calling_render_on_value_based_sort_should_throw ( )
149
- {
150
- var subject = CreateSubject < BsonDocument > ( ) ;
151
-
152
- var exception = Record . Exception ( ( ) => subject . Ascending ( ) . Render ( new RenderArgs < BsonDocument > ( ) ) ) ;
153
-
154
- exception . Should ( ) . BeOfType < InvalidOperationException > ( ) ;
155
- }
156
-
157
157
private void Assert < TDocument > ( SortDefinition < TDocument > sort , string expectedJson )
158
158
{
159
159
var documentSerializer = BsonSerializer . SerializerRegistry . GetSerializer < TDocument > ( ) ;
You can’t perform that action at this time.
0 commit comments