@@ -165,7 +165,7 @@ public void CreateCommand_should_return_expected_result()
165165
166166 var result = reflector . CreateCommand ( serverDescription , null ) ;
167167
168- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" }}") ;
168+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' }}") ;
169169 }
170170
171171 [ Test ]
@@ -180,7 +180,7 @@ public void CreateCommand_should_return_expected_result_when_allowPartialResults
180180
181181 var result = reflector . CreateCommand ( serverDescription , null ) ;
182182
183- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , allowPartialResults : { ( value ? "true" : "false" ) } }}") ;
183+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , allowPartialResults : { ( value ? "true" : "false" ) } }}") ;
184184 }
185185
186186 [ Test ]
@@ -195,7 +195,7 @@ public void CreateCommand_should_return_expected_result_when_comment_is_provided
195195
196196 var result = reflector . CreateCommand ( serverDescription , null ) ;
197197
198- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , comment : \" { value } \" }}") ;
198+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , comment : ' { value } ' }}") ;
199199 }
200200
201201 [ TestCase ( CursorType . Tailable , "" ) ]
@@ -209,7 +209,7 @@ public void CreateCommand_should_return_expected_result_when_cursor_is_tailableA
209209
210210 var result = reflector . CreateCommand ( serverDescription , null ) ;
211211
212- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , tailable : true{ awaitJson } }}") ;
212+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , tailable : true{ awaitJson } }}") ;
213213 }
214214
215215 [ Test ]
@@ -224,7 +224,7 @@ public void CreateCommand_should_return_expected_result_when_filter_is_provided(
224224
225225 var result = reflector . CreateCommand ( serverDescription , null ) ;
226226
227- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , filter : { json } }}") ;
227+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , filter : { json } }}") ;
228228 }
229229
230230 [ Test ]
@@ -239,12 +239,12 @@ public void CreateCommand_should_return_expected_result_when_firstBatchSize_is_p
239239
240240 var result = reflector . CreateCommand ( serverDescription , null ) ;
241241
242- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , batchSize : { value } }}") ;
242+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , batchSize : { value } }}") ;
243243 }
244244
245245 [ Test ]
246246 public void CreateCommand_should_return_expected_result_when_hint_is_provided (
247- [ Values ( "{ value : \" b_1\" }" , "{ value : { b : 1 } }" ) ]
247+ [ Values ( "{ value : ' b_1' }" , "{ value : { b : 1 } }" ) ]
248248 string json )
249249 {
250250 var subject = new FindCommandOperation < BsonDocument > ( _collectionNamespace , BsonDocumentSerializer . Instance , _messageEncoderSettings ) ;
@@ -254,7 +254,7 @@ public void CreateCommand_should_return_expected_result_when_hint_is_provided(
254254
255255 var result = reflector . CreateCommand ( serverDescription , null ) ;
256256
257- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , hint : { subject . Hint . ToJson ( ) } }}") ;
257+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , hint : { subject . Hint . ToJson ( ) } }}") ;
258258 }
259259
260260 [ TestCase ( - 1 , ", limit : 1, singleBatch : true" ) ]
@@ -270,7 +270,7 @@ public void CreateCommand_should_return_expected_result_when_limit_is_provided(i
270270
271271 var result = reflector . CreateCommand ( serverDescription , null ) ;
272272
273- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" { json } }}") ;
273+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' { json } }}") ;
274274 }
275275
276276 [ Test ]
@@ -285,7 +285,7 @@ public void CreateCommand_should_return_expected_result_when_max_is_provided(
285285
286286 var result = reflector . CreateCommand ( serverDescription , null ) ;
287287
288- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , max : { json } }}") ;
288+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , max : { json } }}") ;
289289 }
290290
291291 [ Test ]
@@ -300,7 +300,7 @@ public void CreateCommand_should_return_expected_result_when_maxScan_is_provided
300300
301301 var result = reflector . CreateCommand ( serverDescription , null ) ;
302302
303- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , maxScan : { value } }}") ;
303+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , maxScan : { value } }}") ;
304304 }
305305
306306 [ Test ]
@@ -315,7 +315,7 @@ public void CreateCommand_should_return_expected_result_when_maxTime_is_provided
315315
316316 var result = reflector . CreateCommand ( serverDescription , null ) ;
317317
318- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , maxTimeMS : { value * 1000 } }}") ;
318+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , maxTimeMS : { value * 1000 } }}") ;
319319 }
320320
321321 [ Test ]
@@ -330,7 +330,7 @@ public void CreateCommand_should_return_expected_result_when_min_is_provided(
330330
331331 var result = reflector . CreateCommand ( serverDescription , null ) ;
332332
333- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , min : { json } }}") ;
333+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , min : { json } }}") ;
334334 }
335335
336336 [ Test ]
@@ -345,7 +345,7 @@ public void CreateCommand_should_return_expected_result_when_noCursorTimeout_is_
345345
346346 var result = reflector . CreateCommand ( serverDescription , null ) ;
347347
348- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , noCursorTimeout : { ( value ? "true" : "false" ) } }}") ;
348+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , noCursorTimeout : { ( value ? "true" : "false" ) } }}") ;
349349 }
350350
351351 [ Test ]
@@ -360,7 +360,7 @@ public void CreateCommand_should_return_expected_result_when_oplogReplay_is_prov
360360
361361 var result = reflector . CreateCommand ( serverDescription , null ) ;
362362
363- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , oplogReplay : { ( value ? "true" : "false" ) } }}") ;
363+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , oplogReplay : { ( value ? "true" : "false" ) } }}") ;
364364 }
365365
366366 [ Test ]
@@ -375,7 +375,7 @@ public void CreateCommand_should_return_expected_result_when_projection_is_provi
375375
376376 var result = reflector . CreateCommand ( serverDescription , null ) ;
377377
378- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , projection : { json } }}") ;
378+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , projection : { json } }}") ;
379379 }
380380
381381 [ Test ]
@@ -390,7 +390,7 @@ public void CreateCommand_should_return_expected_result_when_readConcern_is_prov
390390
391391 var result = reflector . CreateCommand ( serverDescription , null ) ;
392392
393- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , readConcern : { value } }}") ;
393+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , readConcern : { value } }}") ;
394394 }
395395
396396 [ Test ]
@@ -407,7 +407,7 @@ public void CreateCommand_should_return_expected_result_when_readPreference_is_p
407407
408408 var mode = value . ToString ( ) ;
409409 var camelCaseMode = char . ToLower ( mode [ 0 ] ) + mode . Substring ( 1 ) ;
410- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , readPreference : {{ mode : \" { camelCaseMode } \" }} }}") ;
410+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , readPreference : {{ mode : ' { camelCaseMode } ' }} }}") ;
411411 }
412412
413413 [ Test ]
@@ -422,7 +422,7 @@ public void CreateCommand_should_return_expected_result_when_returnKey_is_provid
422422
423423 var result = reflector . CreateCommand ( serverDescription , null ) ;
424424
425- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , returnKey : { ( value ? "true" : "false" ) } }}") ;
425+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , returnKey : { ( value ? "true" : "false" ) } }}") ;
426426 }
427427
428428 [ Test ]
@@ -437,7 +437,7 @@ public void CreateCommand_should_return_expected_result_when_showRecordId_is_pro
437437
438438 var result = reflector . CreateCommand ( serverDescription , null ) ;
439439
440- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , showRecordId : { ( value ? "true" : "false" ) } }}") ;
440+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , showRecordId : { ( value ? "true" : "false" ) } }}") ;
441441 }
442442
443443 [ Test ]
@@ -452,7 +452,7 @@ public void CreateCommand_should_return_expected_result_when_singleBatch_is_prov
452452
453453 var result = reflector . CreateCommand ( serverDescription , null ) ;
454454
455- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , singleBatch : { ( value ? "true" : "false" ) } }}") ;
455+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , singleBatch : { ( value ? "true" : "false" ) } }}") ;
456456 }
457457
458458 [ Test ]
@@ -467,7 +467,7 @@ public void CreateCommand_should_return_expected_result_when_skip_is_provided(
467467
468468 var result = reflector . CreateCommand ( serverDescription , null ) ;
469469
470- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , skip : { value } }}") ;
470+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , skip : { value } }}") ;
471471 }
472472
473473 [ Test ]
@@ -482,7 +482,7 @@ public void CreateCommand_should_return_expected_result_when_snapshot_is_provide
482482
483483 var result = reflector . CreateCommand ( serverDescription , null ) ;
484484
485- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , snapshot : { ( value ? "true" : "false" ) } }}") ;
485+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , snapshot : { ( value ? "true" : "false" ) } }}") ;
486486 }
487487
488488 [ Test ]
@@ -497,7 +497,7 @@ public void CreateCommand_should_return_expected_result_when_sort_is_provided(
497497
498498 var result = reflector . CreateCommand ( serverDescription , null ) ;
499499
500- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , sort : { json } }}") ;
500+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , sort : { json } }}") ;
501501 }
502502
503503 [ Test ]
@@ -612,7 +612,7 @@ public void FirstBatchSize_set_should_throw_when_value_is_invalid(
612612
613613 [ Test ]
614614 public void Hint_get_and_set_should_work (
615- [ Values ( null , "{ value : \" b_1\" }" , "{ value : { b : 1 } }" ) ]
615+ [ Values ( null , "{ value : ' b_1' }" , "{ value : { b : 1 } }" ) ]
616616 string json )
617617 {
618618 var subject = new FindCommandOperation < BsonDocument > ( _collectionNamespace , BsonDocumentSerializer . Instance , _messageEncoderSettings ) ;
0 commit comments