File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tests/MongoDB.Driver.Tests/Linq/Linq3Implementation/Jira Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ public void FindOneAndUpdate_should_use_correct_discriminator()
47
47
new FindOneAndUpdateOptions < Lion > { IsUpsert = true } ) ;
48
48
49
49
var result = collection . AsQueryable ( ) . As ( BsonDocumentSerializer . Instance ) . Single ( ) ;
50
- result . Should ( ) . Be (
50
+ result . Should ( ) . BeEquivalentTo (
51
51
"""
52
52
{
53
53
_id : 1,
54
- Name : "Lion1" ,
55
- _t : ["Animal", "Cat", "Lion"]
54
+ _t : ["Animal", "Cat", "Lion"] ,
55
+ Name : "Lion1"
56
56
}
57
57
""" ) ;
58
58
}
@@ -72,12 +72,12 @@ public void UpdateOne_should_use_correct_discriminator()
72
72
new UpdateOptions < Lion > { IsUpsert = true } ) ;
73
73
74
74
var result = collection . AsQueryable ( ) . As ( BsonDocumentSerializer . Instance ) . Single ( ) ;
75
- result . Should ( ) . Be (
75
+ result . Should ( ) . BeEquivalentTo (
76
76
"""
77
77
{
78
78
_id : 2,
79
- Name : "Lion2" ,
80
- _t : ["Animal", "Cat", "Lion"]
79
+ _t : ["Animal", "Cat", "Lion"] ,
80
+ Name : "Lion2"
81
81
}
82
82
""" ) ;
83
83
}
You can’t perform that action at this time.
0 commit comments