Skip to content

Commit 4ddfdf8

Browse files
committed
Corrected order
1 parent 601169e commit 4ddfdf8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public void EncryptedCollection_PatternPropertyNested_works_as_expected()
175175
AssertOutcomeCollectionBuilder(builder, expected);
176176
}
177177

178-
[Fact]
178+
[Fact]
179179
public void EncryptedCollection_PatternPropertyNestedWithString_works_as_expected()
180180
{
181181
Guid? keyId = Guid.Parse(_keyIdString);
@@ -475,14 +475,14 @@ public void BasicPatternTest()
475475
AssertOutcomeBuilder(builder, expected);
476476
}
477477

478-
private void AssertOutcomeBuilder(CsfleSchemaBuilder builder, Dictionary<string, string> expected)
478+
private void AssertOutcomeBuilder(CsfleSchemaBuilder builder, Dictionary<string, string> expectedSchema)
479479
{
480480
var builtSchema = builder.Build();
481-
expected.Should().HaveCount(builtSchema.Count);
482-
foreach (var collectionNamespace in expected.Keys)
481+
expectedSchema.Should().HaveCount(builtSchema.Count);
482+
foreach (var collectionNamespace in expectedSchema.Keys)
483483
{
484-
var parsed = BsonDocument.Parse(expected[collectionNamespace]);
485-
parsed.Should().BeEquivalentTo(builtSchema[collectionNamespace]);
484+
var parsed = BsonDocument.Parse(expectedSchema[collectionNamespace]);
485+
builtSchema[collectionNamespace].Should().BeEquivalentTo(parsed);
486486
}
487487
}
488488

@@ -491,7 +491,7 @@ private void AssertOutcomeCollectionBuilder<T>(EncryptedCollectionBuilder<T> bui
491491
{
492492
var builtSchema = builder.Build();
493493
var expectedSchema = BsonDocument.Parse(expected);
494-
expectedSchema.Should().BeEquivalentTo(builtSchema);
494+
builtSchema.Should().BeEquivalentTo(expectedSchema);
495495
}
496496

497497
/** To test:

0 commit comments

Comments
 (0)