@@ -361,13 +361,13 @@ public void CreateCommand_should_return_expected_result_when_MaxTime_is_set(long
361
361
result [ "maxTimeMS" ] . BsonType . Should ( ) . Be ( BsonType . Int32 ) ;
362
362
}
363
363
364
- [ Theory ]
364
+ [ SkippableTheory ]
365
365
[ ParameterAttributeData ]
366
366
public void Execute_should_return_expected_result_when_key_is_used (
367
367
[ Values ( false , true ) ]
368
368
bool async )
369
369
{
370
- RequireServer . Check ( ) ;
370
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) ;
371
371
EnsureTestData ( ) ;
372
372
var subject = new GroupOperation < BsonDocument > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings ) ;
373
373
@@ -379,13 +379,13 @@ public void Execute_should_return_expected_result_when_key_is_used(
379
379
BsonDocument . Parse ( "{ x : 3, count : 3 }" ) ) ;
380
380
}
381
381
382
- [ Theory ]
382
+ [ SkippableTheory ]
383
383
[ ParameterAttributeData ]
384
384
public void Execute_should_return_expected_result_when_keyFunction_is_used (
385
385
[ Values ( false , true ) ]
386
386
bool async )
387
387
{
388
- RequireServer . Check ( ) ;
388
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) ;
389
389
EnsureTestData ( ) ;
390
390
var subject = new GroupOperation < BsonDocument > ( _collectionNamespace , _keyFunction , _initial , _reduceFunction , null , _messageEncoderSettings ) ;
391
391
@@ -405,7 +405,7 @@ public void Execute_should_return_expected_result_when_Collation_is_set(
405
405
[ Values ( false , true ) ]
406
406
bool async )
407
407
{
408
- RequireServer . Check ( ) . Supports ( Feature . Collation ) ;
408
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand , Feature . Collation ) ;
409
409
EnsureTestData ( ) ;
410
410
var collation = new Collation ( "en_US" , caseLevel : caseSensitive , strength : CollationStrength . Primary ) ;
411
411
var filter = BsonDocument . Parse ( "{ y : 'a' }" ) ;
@@ -437,13 +437,13 @@ public void Execute_should_return_expected_result_when_Collation_is_set(
437
437
result . Should ( ) . Equal ( expectedResult ) ;
438
438
}
439
439
440
- [ Theory ]
440
+ [ SkippableTheory ]
441
441
[ ParameterAttributeData ]
442
442
public void Execute_should_return_expected_result_when_FinalizeFunction_is_set (
443
443
[ Values ( false , true ) ]
444
444
bool async )
445
445
{
446
- RequireServer . Check ( ) ;
446
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) ;
447
447
EnsureTestData ( ) ;
448
448
var subject = new GroupOperation < BsonDocument > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings )
449
449
{
@@ -458,15 +458,15 @@ public void Execute_should_return_expected_result_when_FinalizeFunction_is_set(
458
458
BsonDocument . Parse ( "{ x : 3, count : -3 }" ) ) ;
459
459
}
460
460
461
- [ Theory ]
461
+ [ SkippableTheory ]
462
462
[ ParameterAttributeData ]
463
463
public void Execute_should_return_expected_result_when_MaxTime_is_used (
464
464
[ Values ( null , 1000 ) ]
465
465
int ? seconds ,
466
466
[ Values ( false , true ) ]
467
467
bool async )
468
468
{
469
- RequireServer . Check ( ) ;
469
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) ;
470
470
EnsureTestData ( ) ;
471
471
var maxTime = seconds . HasValue ? TimeSpan . FromSeconds ( seconds . Value ) : ( TimeSpan ? ) null ;
472
472
var subject = new GroupOperation < BsonDocument > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings )
@@ -483,13 +483,13 @@ public void Execute_should_return_expected_result_when_MaxTime_is_used(
483
483
BsonDocument . Parse ( "{ x : 3, count : 3 }" ) ) ;
484
484
}
485
485
486
- [ Theory ]
486
+ [ SkippableTheory ]
487
487
[ ParameterAttributeData ]
488
488
public void Execute_should_return_expected_result_when_ResultSerializer_is_used (
489
489
[ Values ( false , true ) ]
490
490
bool async )
491
491
{
492
- RequireServer . Check ( ) ;
492
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) ;
493
493
EnsureTestData ( ) ;
494
494
var resultSerializer = new ElementDeserializer < int > ( "x" , new Int32Serializer ( ) ) ;
495
495
var subject = new GroupOperation < int > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings )
@@ -502,7 +502,7 @@ public void Execute_should_return_expected_result_when_ResultSerializer_is_used(
502
502
result . Should ( ) . Equal ( 1 , 2 , 3 ) ;
503
503
}
504
504
505
- [ Theory ]
505
+ [ SkippableTheory ]
506
506
[ ParameterAttributeData ]
507
507
public void Execute_should_throw_when_binding_is_null (
508
508
[ Values ( false , true ) ]
@@ -532,7 +532,7 @@ public void Execute_should_throw_when_Collation_is_set_but_not_supported(
532
532
[ Values ( false , true ) ]
533
533
bool async)
534
534
{
535
- RequireServer . Check ( ) . DoesNotSupport ( Feature . Collation ) ;
535
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) . DoesNotSupport ( Feature . Collation ) ;
536
536
EnsureTestData( ) ;
537
537
var subject = new GroupOperation< BsonDocument > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings )
538
538
{
@@ -549,7 +549,7 @@ public void Execute_should_throw_when_Collation_is_set_but_not_supported(
549
549
public void Execute_should_send_session_id_when_supported(
550
550
[ Values ( false , true ) ] bool async )
551
551
{
552
- RequireServer . Check ( ) ;
552
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand ) ;
553
553
EnsureTestData ( ) ;
554
554
var subject = new GroupOperation < BsonDocument > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings ) ;
555
555
@@ -561,7 +561,7 @@ public void Execute_should_send_session_id_when_supported(
561
561
public void Execute_should_throw_when_maxTime_is_exceeded(
562
562
[ Values ( false , true ) ] bool async)
563
563
{
564
- RequireServer . Check ( ) . Supports ( Feature . FailPoints ) . ClusterTypes ( ClusterType . Standalone , ClusterType . ReplicaSet ) ;
564
+ RequireServer . Check ( ) . Supports ( Feature . GroupCommand , Feature . FailPoints ) . ClusterTypes ( ClusterType . Standalone , ClusterType . ReplicaSet ) ;
565
565
var subject = new GroupOperation< BsonDocument > ( _collectionNamespace , _key , _initial , _reduceFunction , null , _messageEncoderSettings ) ;
566
566
subject. MaxTime = TimeSpan . FromSeconds ( 9001 ) ;
567
567
0 commit comments