Skip to content

Commit 0eeced8

Browse files
committed
CSHARP-5587: Change tests to use BeEquivalentTo.
1 parent 040501c commit 0eeced8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira/CSharp5587Tests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public void FindOneAndUpdate_should_use_correct_discriminator()
4747
new FindOneAndUpdateOptions<Lion> { IsUpsert = true });
4848

4949
var result = collection.AsQueryable().As(BsonDocumentSerializer.Instance).Single();
50-
result.Should().Be(
50+
result.Should().BeEquivalentTo(
5151
"""
5252
{
5353
_id : 1,
54-
Name : "Lion1",
55-
_t : ["Animal", "Cat", "Lion"]
54+
_t : ["Animal", "Cat", "Lion"],
55+
Name : "Lion1"
5656
}
5757
""");
5858
}
@@ -72,12 +72,12 @@ public void UpdateOne_should_use_correct_discriminator()
7272
new UpdateOptions<Lion> { IsUpsert = true });
7373

7474
var result = collection.AsQueryable().As(BsonDocumentSerializer.Instance).Single();
75-
result.Should().Be(
75+
result.Should().BeEquivalentTo(
7676
"""
7777
{
7878
_id : 2,
79-
Name : "Lion2",
80-
_t : ["Animal", "Cat", "Lion"]
79+
_t : ["Animal", "Cat", "Lion"],
80+
Name : "Lion2"
8181
}
8282
""");
8383
}

0 commit comments

Comments
 (0)