@@ -144,9 +144,11 @@ public void constructor_with_no_arguments_should_initialize_instance_with_defaul
144
144
public void DisableMD5_get_and_set_should_return_expected_result (
145
145
[ Values ( false , true ) ] bool disabled )
146
146
{
147
+ #pragma warning disable CS0618 // Type or member is obsolete
147
148
var subject = new GridFSBucketOptions { DisableMD5 = disabled } ;
148
149
149
150
var result = subject . DisableMD5 ;
151
+ #pragma warning restore CS0618 // Type or member is obsolete
150
152
151
153
result . Should ( ) . Be ( disabled ) ;
152
154
}
@@ -241,7 +243,9 @@ public void constructor_with_arguments_should_initialize_instance()
241
243
{
242
244
BucketName = "bucket" ,
243
245
ChunkSizeBytes = 123 ,
246
+ #pragma warning disable CS0618 // Type or member is obsolete
244
247
DisableMD5 = true ,
248
+ #pragma warning restore CS0618 // Type or member is obsolete
245
249
ReadConcern = ReadConcern . Majority ,
246
250
ReadPreference = ReadPreference . Secondary ,
247
251
WriteConcern = WriteConcern . WMajority
@@ -251,7 +255,9 @@ public void constructor_with_arguments_should_initialize_instance()
251
255
252
256
result . BucketName . Should ( ) . Be ( "bucket" ) ;
253
257
result . ChunkSizeBytes . Should ( ) . Be ( 123 ) ;
258
+ #pragma warning disable CS0618 // Type or member is obsolete
254
259
result . DisableMD5 . Should ( ) . Be ( true ) ;
260
+ #pragma warning restore CS0618 // Type or member is obsolete
255
261
result . ReadConcern . Should ( ) . Be ( ReadConcern . Majority ) ;
256
262
result . ReadPreference . Should ( ) . Be ( ReadPreference . Secondary ) ;
257
263
result . WriteConcern . Should ( ) . Be ( WriteConcern . WMajority ) ;
@@ -264,7 +270,9 @@ public void constructor_with_no_arguments_should_initialize_instance_with_defaul
264
270
265
271
result . BucketName . Should ( ) . Be ( "fs" ) ;
266
272
result . ChunkSizeBytes . Should ( ) . Be ( 255 * 1024 ) ;
273
+ #pragma warning disable CS0618 // Type or member is obsolete
267
274
result . DisableMD5 . Should ( ) . Be ( false ) ;
275
+ #pragma warning restore CS0618 // Type or member is obsolete
268
276
result . ReadConcern . Should ( ) . BeNull ( ) ;
269
277
result . ReadPreference . Should ( ) . BeNull ( ) ;
270
278
result . WriteConcern . Should ( ) . BeNull ( ) ;
@@ -286,7 +294,9 @@ public void Defaults_get_should_return_expected_result()
286
294
287
295
result . BucketName . Should ( ) . Be ( "fs" ) ;
288
296
result . ChunkSizeBytes . Should ( ) . Be ( 255 * 1024 ) ;
297
+ #pragma warning disable CS0618 // Type or member is obsolete
289
298
result . DisableMD5 . Should ( ) . Be ( false ) ;
299
+ #pragma warning restore CS0618 // Type or member is obsolete
290
300
result . ReadConcern . Should ( ) . BeNull ( ) ;
291
301
result . ReadPreference . Should ( ) . BeNull ( ) ;
292
302
result . WriteConcern . Should ( ) . BeNull ( ) ;
@@ -297,9 +307,11 @@ public void Defaults_get_should_return_expected_result()
297
307
public void DisableMD5_get_and_set_should_return_expected_result (
298
308
[ Values ( false , true ) ] bool disabled )
299
309
{
310
+ #pragma warning disable CS0618 // Type or member is obsolete
300
311
var subject = new ImmutableGridFSBucketOptions ( new GridFSBucketOptions { DisableMD5 = disabled } ) ;
301
312
302
313
var result = subject . DisableMD5 ;
314
+ #pragma warning restore CS0618 // Type or member is obsolete
303
315
304
316
result . Should ( ) . Be ( disabled ) ;
305
317
}
0 commit comments