@@ -165,7 +165,7 @@ public void CreateCommand_should_return_expected_result()
165
165
166
166
var result = reflector . CreateCommand ( serverDescription , null ) ;
167
167
168
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" }}") ;
168
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' }}") ;
169
169
}
170
170
171
171
[ Test ]
@@ -180,7 +180,7 @@ public void CreateCommand_should_return_expected_result_when_allowPartialResults
180
180
181
181
var result = reflector . CreateCommand ( serverDescription , null ) ;
182
182
183
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , allowPartialResults : { ( value ? "true" : "false" ) } }}") ;
183
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , allowPartialResults : { ( value ? "true" : "false" ) } }}") ;
184
184
}
185
185
186
186
[ Test ]
@@ -195,7 +195,7 @@ public void CreateCommand_should_return_expected_result_when_comment_is_provided
195
195
196
196
var result = reflector . CreateCommand ( serverDescription , null ) ;
197
197
198
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , comment : \" { value } \" }}") ;
198
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , comment : ' { value } ' }}") ;
199
199
}
200
200
201
201
[ TestCase ( CursorType . Tailable , "" ) ]
@@ -209,7 +209,7 @@ public void CreateCommand_should_return_expected_result_when_cursor_is_tailableA
209
209
210
210
var result = reflector . CreateCommand ( serverDescription , null ) ;
211
211
212
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , tailable : true{ awaitJson } }}") ;
212
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , tailable : true{ awaitJson } }}") ;
213
213
}
214
214
215
215
[ Test ]
@@ -224,7 +224,7 @@ public void CreateCommand_should_return_expected_result_when_filter_is_provided(
224
224
225
225
var result = reflector . CreateCommand ( serverDescription , null ) ;
226
226
227
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , filter : { json } }}") ;
227
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , filter : { json } }}") ;
228
228
}
229
229
230
230
[ Test ]
@@ -239,12 +239,12 @@ public void CreateCommand_should_return_expected_result_when_firstBatchSize_is_p
239
239
240
240
var result = reflector . CreateCommand ( serverDescription , null ) ;
241
241
242
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , batchSize : { value } }}") ;
242
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , batchSize : { value } }}") ;
243
243
}
244
244
245
245
[ Test ]
246
246
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 } }" ) ]
248
248
string json )
249
249
{
250
250
var subject = new FindCommandOperation < BsonDocument > ( _collectionNamespace , BsonDocumentSerializer . Instance , _messageEncoderSettings ) ;
@@ -254,7 +254,7 @@ public void CreateCommand_should_return_expected_result_when_hint_is_provided(
254
254
255
255
var result = reflector . CreateCommand ( serverDescription , null ) ;
256
256
257
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , hint : { subject . Hint . ToJson ( ) } }}") ;
257
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , hint : { subject . Hint . ToJson ( ) } }}") ;
258
258
}
259
259
260
260
[ TestCase ( - 1 , ", limit : 1, singleBatch : true" ) ]
@@ -270,7 +270,7 @@ public void CreateCommand_should_return_expected_result_when_limit_is_provided(i
270
270
271
271
var result = reflector . CreateCommand ( serverDescription , null ) ;
272
272
273
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" { json } }}") ;
273
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' { json } }}") ;
274
274
}
275
275
276
276
[ Test ]
@@ -285,7 +285,7 @@ public void CreateCommand_should_return_expected_result_when_max_is_provided(
285
285
286
286
var result = reflector . CreateCommand ( serverDescription , null ) ;
287
287
288
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , max : { json } }}") ;
288
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , max : { json } }}") ;
289
289
}
290
290
291
291
[ Test ]
@@ -300,7 +300,7 @@ public void CreateCommand_should_return_expected_result_when_maxScan_is_provided
300
300
301
301
var result = reflector . CreateCommand ( serverDescription , null ) ;
302
302
303
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , maxScan : { value } }}") ;
303
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , maxScan : { value } }}") ;
304
304
}
305
305
306
306
[ Test ]
@@ -315,7 +315,7 @@ public void CreateCommand_should_return_expected_result_when_maxTime_is_provided
315
315
316
316
var result = reflector . CreateCommand ( serverDescription , null ) ;
317
317
318
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , maxTimeMS : { value * 1000 } }}") ;
318
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , maxTimeMS : { value * 1000 } }}") ;
319
319
}
320
320
321
321
[ Test ]
@@ -330,7 +330,7 @@ public void CreateCommand_should_return_expected_result_when_min_is_provided(
330
330
331
331
var result = reflector . CreateCommand ( serverDescription , null ) ;
332
332
333
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , min : { json } }}") ;
333
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , min : { json } }}") ;
334
334
}
335
335
336
336
[ Test ]
@@ -345,7 +345,7 @@ public void CreateCommand_should_return_expected_result_when_noCursorTimeout_is_
345
345
346
346
var result = reflector . CreateCommand ( serverDescription , null ) ;
347
347
348
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , noCursorTimeout : { ( value ? "true" : "false" ) } }}") ;
348
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , noCursorTimeout : { ( value ? "true" : "false" ) } }}") ;
349
349
}
350
350
351
351
[ Test ]
@@ -360,7 +360,7 @@ public void CreateCommand_should_return_expected_result_when_oplogReplay_is_prov
360
360
361
361
var result = reflector . CreateCommand ( serverDescription , null ) ;
362
362
363
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , oplogReplay : { ( value ? "true" : "false" ) } }}") ;
363
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , oplogReplay : { ( value ? "true" : "false" ) } }}") ;
364
364
}
365
365
366
366
[ Test ]
@@ -375,7 +375,7 @@ public void CreateCommand_should_return_expected_result_when_projection_is_provi
375
375
376
376
var result = reflector . CreateCommand ( serverDescription , null ) ;
377
377
378
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , projection : { json } }}") ;
378
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , projection : { json } }}") ;
379
379
}
380
380
381
381
[ Test ]
@@ -390,7 +390,7 @@ public void CreateCommand_should_return_expected_result_when_readConcern_is_prov
390
390
391
391
var result = reflector . CreateCommand ( serverDescription , null ) ;
392
392
393
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , readConcern : { value } }}") ;
393
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , readConcern : { value } }}") ;
394
394
}
395
395
396
396
[ Test ]
@@ -407,7 +407,7 @@ public void CreateCommand_should_return_expected_result_when_readPreference_is_p
407
407
408
408
var mode = value . ToString ( ) ;
409
409
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 } ' }} }}") ;
411
411
}
412
412
413
413
[ Test ]
@@ -422,7 +422,7 @@ public void CreateCommand_should_return_expected_result_when_returnKey_is_provid
422
422
423
423
var result = reflector . CreateCommand ( serverDescription , null ) ;
424
424
425
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , returnKey : { ( value ? "true" : "false" ) } }}") ;
425
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , returnKey : { ( value ? "true" : "false" ) } }}") ;
426
426
}
427
427
428
428
[ Test ]
@@ -437,7 +437,7 @@ public void CreateCommand_should_return_expected_result_when_showRecordId_is_pro
437
437
438
438
var result = reflector . CreateCommand ( serverDescription , null ) ;
439
439
440
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , showRecordId : { ( value ? "true" : "false" ) } }}") ;
440
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , showRecordId : { ( value ? "true" : "false" ) } }}") ;
441
441
}
442
442
443
443
[ Test ]
@@ -452,7 +452,7 @@ public void CreateCommand_should_return_expected_result_when_singleBatch_is_prov
452
452
453
453
var result = reflector . CreateCommand ( serverDescription , null ) ;
454
454
455
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , singleBatch : { ( value ? "true" : "false" ) } }}") ;
455
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , singleBatch : { ( value ? "true" : "false" ) } }}") ;
456
456
}
457
457
458
458
[ Test ]
@@ -467,7 +467,7 @@ public void CreateCommand_should_return_expected_result_when_skip_is_provided(
467
467
468
468
var result = reflector . CreateCommand ( serverDescription , null ) ;
469
469
470
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , skip : { value } }}") ;
470
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , skip : { value } }}") ;
471
471
}
472
472
473
473
[ Test ]
@@ -482,7 +482,7 @@ public void CreateCommand_should_return_expected_result_when_snapshot_is_provide
482
482
483
483
var result = reflector . CreateCommand ( serverDescription , null ) ;
484
484
485
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , snapshot : { ( value ? "true" : "false" ) } }}") ;
485
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , snapshot : { ( value ? "true" : "false" ) } }}") ;
486
486
}
487
487
488
488
[ Test ]
@@ -497,7 +497,7 @@ public void CreateCommand_should_return_expected_result_when_sort_is_provided(
497
497
498
498
var result = reflector . CreateCommand ( serverDescription , null ) ;
499
499
500
- result . Should ( ) . Be ( $ "{{ find : \" { _collectionNamespace . CollectionName } \" , sort : { json } }}") ;
500
+ result . Should ( ) . Be ( $ "{{ find : ' { _collectionNamespace . CollectionName } ' , sort : { json } }}") ;
501
501
}
502
502
503
503
[ Test ]
@@ -612,7 +612,7 @@ public void FirstBatchSize_set_should_throw_when_value_is_invalid(
612
612
613
613
[ Test ]
614
614
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 } }" ) ]
616
616
string json )
617
617
{
618
618
var subject = new FindCommandOperation < BsonDocument > ( _collectionNamespace , BsonDocumentSerializer . Instance , _messageEncoderSettings ) ;
0 commit comments