@@ -117,7 +117,7 @@ public void constructor_with_immutable_other_should_initialize_instance()
117
117
[ Fact ]
118
118
public void constructor_with_mutable_other_should_initialize_instance ( )
119
119
{
120
- var other = new GridFSBucketOptions { BucketName = "bucket" , ChunkSizeBytes = 123 , ReadConcern = ReadConcern . Majority , ReadPreference = ReadPreference . Secondary , WriteConcern = WriteConcern . WMajority , SuppressEnsureIndexes = true } ;
120
+ var other = new GridFSBucketOptions { BucketName = "bucket" , ChunkSizeBytes = 123 , ReadConcern = ReadConcern . Majority , ReadPreference = ReadPreference . Secondary , WriteConcern = WriteConcern . WMajority , AssumeIndexesExist = true } ;
121
121
122
122
var result = new GridFSBucketOptions ( other ) ;
123
123
@@ -126,7 +126,7 @@ public void constructor_with_mutable_other_should_initialize_instance()
126
126
result . ReadConcern . Should ( ) . Be ( other . ReadConcern ) ;
127
127
result . ReadPreference . Should ( ) . Be ( other . ReadPreference ) ;
128
128
result . WriteConcern . Should ( ) . Be ( other . WriteConcern ) ;
129
- result . SuppressEnsureIndexes . Should ( ) . Be ( other . SuppressEnsureIndexes ) ;
129
+ result . AssumeIndexesExist . Should ( ) . Be ( other . AssumeIndexesExist ) ;
130
130
}
131
131
132
132
[ Fact ]
@@ -138,7 +138,7 @@ public void constructor_with_no_arguments_should_initialize_instance_with_defaul
138
138
result . ChunkSizeBytes . Should ( ) . Be ( 255 * 1024 ) ;
139
139
result . ReadPreference . Should ( ) . BeNull ( ) ;
140
140
result . WriteConcern . Should ( ) . BeNull ( ) ;
141
- result . SuppressEnsureIndexes . Should ( ) . BeFalse ( ) ;
141
+ result . AssumeIndexesExist . Should ( ) . BeFalse ( ) ;
142
142
}
143
143
144
144
[ Fact ]
@@ -202,23 +202,23 @@ public void WriteConcern_set_should_have_expected_result()
202
202
}
203
203
204
204
[ Fact ]
205
- public void SuppressEnsureIndexes_get_should_return_expected_result ( )
205
+ public void AssumeIndexesExist_get_should_return_expected_result ( )
206
206
{
207
- var subject = new GridFSBucketOptions { SuppressEnsureIndexes = true } ;
207
+ var subject = new GridFSBucketOptions { AssumeIndexesExist = true } ;
208
208
209
- var result = subject . SuppressEnsureIndexes ;
209
+ var result = subject . AssumeIndexesExist ;
210
210
211
211
result . Should ( ) . BeTrue ( ) ;
212
212
}
213
213
214
214
[ Fact ]
215
- public void SuppressEnsureIndexes_set_should_have_expected_result ( )
215
+ public void AssumeIndexesExist_set_should_have_expected_result ( )
216
216
{
217
217
var subject = new GridFSBucketOptions ( ) ;
218
218
219
- subject . SuppressEnsureIndexes = true ;
219
+ subject . AssumeIndexesExist = true ;
220
220
221
- subject . SuppressEnsureIndexes . Should ( ) . BeTrue ( ) ;
221
+ subject . AssumeIndexesExist . Should ( ) . BeTrue ( ) ;
222
222
}
223
223
}
224
224
@@ -247,7 +247,7 @@ public void ChunkSizeBytes_get_should_return_expected_result()
247
247
[ Fact ]
248
248
public void constructor_with_arguments_should_initialize_instance ( )
249
249
{
250
- var mutable = new GridFSBucketOptions { BucketName = "bucket" , ChunkSizeBytes = 123 , ReadConcern = ReadConcern . Majority , ReadPreference = ReadPreference . Secondary , WriteConcern = WriteConcern . WMajority , SuppressEnsureIndexes = true } ;
250
+ var mutable = new GridFSBucketOptions { BucketName = "bucket" , ChunkSizeBytes = 123 , ReadConcern = ReadConcern . Majority , ReadPreference = ReadPreference . Secondary , WriteConcern = WriteConcern . WMajority , AssumeIndexesExist = true } ;
251
251
252
252
var result = new ImmutableGridFSBucketOptions ( mutable ) ;
253
253
@@ -256,7 +256,7 @@ public void constructor_with_arguments_should_initialize_instance()
256
256
result . ReadConcern . Should ( ) . Be ( ReadConcern . Majority ) ;
257
257
result . ReadPreference . Should ( ) . Be ( ReadPreference . Secondary ) ;
258
258
result . WriteConcern . Should ( ) . Be ( WriteConcern . WMajority ) ;
259
- result . SuppressEnsureIndexes . Should ( ) . BeTrue ( ) ;
259
+ result . AssumeIndexesExist . Should ( ) . BeTrue ( ) ;
260
260
}
261
261
262
262
[ Fact ]
@@ -269,7 +269,7 @@ public void constructor_with_no_arguments_should_initialize_instance_with_defaul
269
269
result . ReadConcern . Should ( ) . BeNull ( ) ;
270
270
result . ReadPreference . Should ( ) . BeNull ( ) ;
271
271
result . WriteConcern . Should ( ) . BeNull ( ) ;
272
- result . SuppressEnsureIndexes . Should ( ) . BeFalse ( ) ;
272
+ result . AssumeIndexesExist . Should ( ) . BeFalse ( ) ;
273
273
}
274
274
275
275
[ Fact ]
@@ -291,7 +291,7 @@ public void Defaults_get_should_return_expected_result()
291
291
result . ReadConcern . Should ( ) . BeNull ( ) ;
292
292
result . ReadPreference . Should ( ) . BeNull ( ) ;
293
293
result . WriteConcern . Should ( ) . BeNull ( ) ;
294
- result . SuppressEnsureIndexes . Should ( ) . BeFalse ( ) ;
294
+ result . AssumeIndexesExist . Should ( ) . BeFalse ( ) ;
295
295
}
296
296
297
297
[ Fact ]
@@ -325,11 +325,11 @@ public void WriteConcern_get_should_return_expected_result()
325
325
}
326
326
327
327
[ Fact ]
328
- public void SuppressEnsureIndexes_get_should_return_expected_result ( )
328
+ public void AssumeIndexesExist_get_should_return_expected_result ( )
329
329
{
330
- var subject = new ImmutableGridFSBucketOptions ( new GridFSBucketOptions { SuppressEnsureIndexes = true } ) ;
330
+ var subject = new ImmutableGridFSBucketOptions ( new GridFSBucketOptions { AssumeIndexesExist = true } ) ;
331
331
332
- var result = subject . SuppressEnsureIndexes ;
332
+ var result = subject . AssumeIndexesExist ;
333
333
334
334
result . Should ( ) . BeTrue ( ) ;
335
335
}
0 commit comments