@@ -143,7 +143,7 @@ public void CsfleSchemaBuilder_works_as_expected()
143
143
}
144
144
145
145
[ Fact ]
146
- public void CsfleSchemaBuilder_WithMultipleTypes_works_as_expected ( )
146
+ public void CsfleSchemaBuilder_with_multiple_types_works_as_expected ( )
147
147
{
148
148
const string patientCollectionName = "medicalRecords.patients" ;
149
149
const string testClassCollectionName = "test.class" ;
@@ -276,7 +276,7 @@ public void EncryptedCollection_PatternProperty_works_as_expected(BsonType bsonT
276
276
EncryptionAlgorithm . AEAD_AES_256_CBC_HMAC_SHA_512_Random ,
277
277
_keyIdString ,
278
278
""" "bsonType": ["array", "string"], "algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random", "keyId": [{ "$binary" : { "base64" : "b0r0cADRQB+sOfRZAqDAyA==", "subType" : "04" } }] """ ) ]
279
- public void EncryptedCollection_PatternPropertyWithMultipleBsonTypes_works_as_expected ( IEnumerable < BsonType > bsonTypes , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
279
+ public void EncryptedCollection_PatternProperty_with_multiple_bson_types_works_as_expected ( IEnumerable < BsonType > bsonTypes , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
280
280
{
281
281
Guid ? keyId = keyString is null ? null : Guid . Parse ( keyString ) ;
282
282
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -300,7 +300,7 @@ public void EncryptedCollection_PatternPropertyWithMultipleBsonTypes_works_as_ex
300
300
}
301
301
302
302
[ Fact ]
303
- public void EncryptedCollection_PatternPropertyNested_works_as_expected ( )
303
+ public void EncryptedCollection_PatternProperty_nested_works_as_expected ( )
304
304
{
305
305
Guid ? keyId = Guid . Parse ( _keyIdString ) ;
306
306
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -349,7 +349,7 @@ public void EncryptedCollection_PatternPropertyNested_works_as_expected()
349
349
}
350
350
351
351
[ Fact ]
352
- public void EncryptedCollection_PatternPropertyNestedWithString_works_as_expected ( )
352
+ public void EncryptedCollection_PatternProperty_nested_with_string_works_as_expected ( )
353
353
{
354
354
Guid ? keyId = Guid . Parse ( _keyIdString ) ;
355
355
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -410,7 +410,7 @@ public void EncryptedCollection_PatternPropertyNestedWithString_works_as_expecte
410
410
EncryptionAlgorithm . AEAD_AES_256_CBC_HMAC_SHA_512_Random ,
411
411
_keyIdString ,
412
412
""" "bsonType": "array", "algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random", "keyId": [{ "$binary" : { "base64" : "b0r0cADRQB+sOfRZAqDAyA==", "subType" : "04" } }] """ ) ]
413
- public void EncryptedCollection_PropertyWithExpression_works_as_expected ( BsonType bsonType , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
413
+ public void EncryptedCollection_Property_with_expression_works_as_expected ( BsonType bsonType , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
414
414
{
415
415
Guid ? keyId = keyString is null ? null : Guid . Parse ( keyString ) ;
416
416
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -446,7 +446,7 @@ public void EncryptedCollection_PropertyWithExpression_works_as_expected(BsonTyp
446
446
EncryptionAlgorithm . AEAD_AES_256_CBC_HMAC_SHA_512_Random ,
447
447
_keyIdString ,
448
448
""" "bsonType": ["array", "string"], "algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random", "keyId": [{ "$binary" : { "base64" : "b0r0cADRQB+sOfRZAqDAyA==", "subType" : "04" } }] """ ) ]
449
- public void EncryptedCollection_PropertyWithMultipleBsonTypes_works_as_expected ( IEnumerable < BsonType > bsonTypes , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
449
+ public void EncryptedCollection_Property_with_multiple_bson_types_works_as_expected ( IEnumerable < BsonType > bsonTypes , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
450
450
{
451
451
Guid ? keyId = keyString is null ? null : Guid . Parse ( keyString ) ;
452
452
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -482,7 +482,7 @@ public void EncryptedCollection_PropertyWithMultipleBsonTypes_works_as_expected(
482
482
EncryptionAlgorithm . AEAD_AES_256_CBC_HMAC_SHA_512_Random ,
483
483
_keyIdString ,
484
484
""" "bsonType": "array", "algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random", "keyId": [{ "$binary" : { "base64" : "b0r0cADRQB+sOfRZAqDAyA==", "subType" : "04" } }] """ ) ]
485
- public void EncryptedCollection_PropertyWithString_works_as_expected ( BsonType bsonType , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
485
+ public void EncryptedCollection_Property_with_string_works_as_expected ( BsonType bsonType , EncryptionAlgorithm ? algorithm , string keyString , string expectedContent )
486
486
{
487
487
Guid ? keyId = keyString is null ? null : Guid . Parse ( keyString ) ;
488
488
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -505,8 +505,8 @@ public void EncryptedCollection_PropertyWithString_works_as_expected(BsonType bs
505
505
AssertOutcomeCollectionBuilder ( builder , expected ) ;
506
506
}
507
507
508
- [ Fact ]
509
- public void EncryptedCollection_PropertyNested_works_as_expected ( )
508
+ [ Fact ]
509
+ public void EncryptedCollection_Property_nested_works_as_expected ( )
510
510
{
511
511
Guid ? keyId = Guid . Parse ( _keyIdString ) ;
512
512
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -555,7 +555,7 @@ public void EncryptedCollection_PropertyNested_works_as_expected()
555
555
}
556
556
557
557
[ Fact ]
558
- public void EncryptedCollection_PropertyNestedWithString_works_as_expected ( )
558
+ public void EncryptedCollection_Property_nested_with_string_works_as_expected ( )
559
559
{
560
560
Guid ? keyId = Guid . Parse ( _keyIdString ) ;
561
561
var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
@@ -603,16 +603,6 @@ public void EncryptedCollection_PropertyNestedWithString_works_as_expected()
603
603
AssertOutcomeCollectionBuilder ( builder , expected ) ;
604
604
}
605
605
606
- [ Fact ]
607
- public void EncryptedCollection_Property_with_null_bson_types_throws ( )
608
- {
609
- var builder = new EncryptedCollectionBuilder < Patient > ( ) ;
610
-
611
- var recordedException = Record . Exception ( ( ) => builder . Property ( "test" , null ) ) ;
612
- recordedException . Should ( ) . NotBeNull ( ) ;
613
- recordedException . Should ( ) . BeOfType < ArgumentNullException > ( ) ;
614
- }
615
-
616
606
[ Fact ]
617
607
public void EncryptedCollection_Property_with_empty_bson_types_throws ( )
618
608
{
0 commit comments