@@ -83,8 +83,8 @@ public void Settings_should_be_set()
8383 [ Test ]
8484 public async Task AggregateAsync_should_execute_the_AggregateOperation_when_out_is_not_specified ( )
8585 {
86- var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
87- {
86+ var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
87+ {
8888 BsonDocument . Parse ( "{$match: {x: 2}}" )
8989 } ;
9090 var options = new AggregateOptions ( )
@@ -115,10 +115,10 @@ public async Task AggregateAsync_should_execute_the_AggregateOperation_when_out_
115115 [ Test ]
116116 public async Task AggregateAsync_should_execute_the_AggregateToCollectionOperation_and_the_FindOperation_when_out_is_specified ( )
117117 {
118- var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
119- {
120- BsonDocument . Parse ( "{$match: {x: 2}}" ) ,
121- BsonDocument . Parse ( "{$out: \" funny\" }" )
118+ var stages = new PipelineStageDefinition < BsonDocument , BsonDocument > [ ]
119+ {
120+ BsonDocument . Parse ( "{$match: {x: 2}}" ) ,
121+ BsonDocument . Parse ( "{$out: \" funny\" }" )
122122 } ;
123123 var options = new AggregateOptions ( )
124124 {
@@ -171,8 +171,8 @@ public async Task AggregateAsync_should_execute_the_AggregateToCollectionOperati
171171 [ TestCase ( false ) ]
172172 public async Task BulkWriteAsync_should_execute_the_BulkMixedWriteOperation ( bool isOrdered )
173173 {
174- var requests = new WriteModel < BsonDocument > [ ]
175- {
174+ var requests = new WriteModel < BsonDocument > [ ]
175+ {
176176 new InsertOneModel < BsonDocument > ( new BsonDocument ( "_id" , 1 ) . Add ( "a" , 1 ) ) ,
177177 new DeleteManyModel < BsonDocument > ( new BsonDocument ( "b" , 1 ) ) ,
178178 new DeleteOneModel < BsonDocument > ( new BsonDocument ( "c" , 1 ) ) ,
@@ -546,7 +546,7 @@ public async Task FindAsync_with_Projection_As_should_execute_correctly()
546546 Projection = Builders < A > . Projection . As < BsonDocument > ( )
547547 } ;
548548
549- var result = await subject . FindAsync ( filter , options , CancellationToken . None ) ;
549+ await subject . FindAsync ( filter , options , CancellationToken . None ) ;
550550
551551 var call = _operationExecutor . GetReadCall < IAsyncCursor < BsonDocument > > ( ) ;
552552 call . Operation . Should ( ) . BeOfType < FindOperation < BsonDocument > > ( ) ;
@@ -593,7 +593,7 @@ public async Task FindOneAndDeleteAsync_with_Projection_As_should_execute_correc
593593 Projection = Builders < A > . Projection . As < BsonDocument > ( )
594594 } ;
595595
596- var result = await subject . FindOneAndDeleteAsync ( filter , options , CancellationToken . None ) ;
596+ await subject . FindOneAndDeleteAsync ( filter , options , CancellationToken . None ) ;
597597
598598 var call = _operationExecutor . GetWriteCall < BsonDocument > ( ) ;
599599 call . Operation . Should ( ) . BeOfType < FindOneAndDeleteOperation < BsonDocument > > ( ) ;
@@ -651,7 +651,7 @@ public async Task FindOneAndReplaceAsync_with_Projection_As_should_execute_corre
651651 Projection = Builders < A > . Projection . As < BsonDocument > ( )
652652 } ;
653653
654- var result = await subject . FindOneAndReplaceAsync ( filter , replacement , options , CancellationToken . None ) ;
654+ await subject . FindOneAndReplaceAsync ( filter , replacement , options , CancellationToken . None ) ;
655655
656656 var call = _operationExecutor . GetWriteCall < BsonDocument > ( ) ;
657657 call . Operation . Should ( ) . BeOfType < FindOneAndReplaceOperation < BsonDocument > > ( ) ;
@@ -709,7 +709,7 @@ public async Task FindOneAndUpdateAsync_with_Projection_As_should_execute_correc
709709 Projection = Builders < A > . Projection . As < BsonDocument > ( )
710710 } ;
711711
712- var result = await subject . FindOneAndUpdateAsync ( filter , update , options , CancellationToken . None ) ;
712+ await subject . FindOneAndUpdateAsync ( filter , update , options , CancellationToken . None ) ;
713713
714714 var call = _operationExecutor . GetWriteCall < BsonDocument > ( ) ;
715715 call . Operation . Should ( ) . BeOfType < FindOneAndUpdateOperation < BsonDocument > > ( ) ;
@@ -959,12 +959,12 @@ public void InsertOneAsync_should_throw_a_WriteException_when_an_error_occurs()
959959 [ Test ]
960960 public async Task InsertManyAsync_should_execute_the_BulkMixedOperation ( )
961961 {
962- var documents = new [ ]
963- {
962+ var documents = new [ ]
963+ {
964964 BsonDocument . Parse ( "{_id:1,a:1}" ) ,
965965 BsonDocument . Parse ( "{_id:2,a:2}" )
966966 } ;
967- var expectedRequests = new [ ]
967+ var expectedRequests = new [ ]
968968 {
969969 new InsertRequest ( documents [ 0 ] ) { CorrelationId = 0 } ,
970970 new InsertRequest ( documents [ 1 ] ) { CorrelationId = 1 }
0 commit comments