Skip to content

Commit a8390d3

Browse files
committed
Corrected test naming
1 parent 20379df commit a8390d3

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

tests/MongoDB.Driver.Tests/Encryption/CsfleSchemaBuilderTests.cs

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void CsfleSchemaBuilder_works_as_expected()
143143
}
144144

145145
[Fact]
146-
public void CsfleSchemaBuilder_WithMultipleTypes_works_as_expected()
146+
public void CsfleSchemaBuilder_with_multiple_types_works_as_expected()
147147
{
148148
const string patientCollectionName = "medicalRecords.patients";
149149
const string testClassCollectionName = "test.class";
@@ -276,7 +276,7 @@ public void EncryptedCollection_PatternProperty_works_as_expected(BsonType bsonT
276276
EncryptionAlgorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Random,
277277
_keyIdString,
278278
""" "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)
280280
{
281281
Guid? keyId = keyString is null ? null : Guid.Parse(keyString);
282282
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -300,7 +300,7 @@ public void EncryptedCollection_PatternPropertyWithMultipleBsonTypes_works_as_ex
300300
}
301301

302302
[Fact]
303-
public void EncryptedCollection_PatternPropertyNested_works_as_expected()
303+
public void EncryptedCollection_PatternProperty_nested_works_as_expected()
304304
{
305305
Guid? keyId = Guid.Parse(_keyIdString);
306306
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -349,7 +349,7 @@ public void EncryptedCollection_PatternPropertyNested_works_as_expected()
349349
}
350350

351351
[Fact]
352-
public void EncryptedCollection_PatternPropertyNestedWithString_works_as_expected()
352+
public void EncryptedCollection_PatternProperty_nested_with_string_works_as_expected()
353353
{
354354
Guid? keyId = Guid.Parse(_keyIdString);
355355
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -410,7 +410,7 @@ public void EncryptedCollection_PatternPropertyNestedWithString_works_as_expecte
410410
EncryptionAlgorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Random,
411411
_keyIdString,
412412
""" "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)
414414
{
415415
Guid? keyId = keyString is null ? null : Guid.Parse(keyString);
416416
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -446,7 +446,7 @@ public void EncryptedCollection_PropertyWithExpression_works_as_expected(BsonTyp
446446
EncryptionAlgorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Random,
447447
_keyIdString,
448448
""" "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)
450450
{
451451
Guid? keyId = keyString is null ? null : Guid.Parse(keyString);
452452
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -482,7 +482,7 @@ public void EncryptedCollection_PropertyWithMultipleBsonTypes_works_as_expected(
482482
EncryptionAlgorithm.AEAD_AES_256_CBC_HMAC_SHA_512_Random,
483483
_keyIdString,
484484
""" "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)
486486
{
487487
Guid? keyId = keyString is null ? null : Guid.Parse(keyString);
488488
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -505,8 +505,8 @@ public void EncryptedCollection_PropertyWithString_works_as_expected(BsonType bs
505505
AssertOutcomeCollectionBuilder(builder, expected);
506506
}
507507

508-
[Fact]
509-
public void EncryptedCollection_PropertyNested_works_as_expected()
508+
[Fact]
509+
public void EncryptedCollection_Property_nested_works_as_expected()
510510
{
511511
Guid? keyId = Guid.Parse(_keyIdString);
512512
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -555,7 +555,7 @@ public void EncryptedCollection_PropertyNested_works_as_expected()
555555
}
556556

557557
[Fact]
558-
public void EncryptedCollection_PropertyNestedWithString_works_as_expected()
558+
public void EncryptedCollection_Property_nested_with_string_works_as_expected()
559559
{
560560
Guid? keyId = Guid.Parse(_keyIdString);
561561
var builder = new EncryptedCollectionBuilder<Patient>();
@@ -603,16 +603,6 @@ public void EncryptedCollection_PropertyNestedWithString_works_as_expected()
603603
AssertOutcomeCollectionBuilder(builder, expected);
604604
}
605605

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-
616606
[Fact]
617607
public void EncryptedCollection_Property_with_empty_bson_types_throws()
618608
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-

1+
//TODO Do we need to keep this empty file...?

0 commit comments

Comments
 (0)