Skip to content

Commit

Permalink
Proper verification of collection in mixed merge test
Browse files Browse the repository at this point in the history
  • Loading branch information
rorbech committed Mar 18, 2024
1 parent d7b0397 commit 6a05037
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Tests/Realm.Tests/Sync/DataTypeSynchronizationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -901,12 +901,14 @@ public void CollectionMerge()
var list2 = obj1.RealmValueProperty.AsDictionary()["list"].AsList();
var dictionary2 = obj1.RealmValueProperty.AsDictionary()["dictionary"].AsDictionary();
Assert.That(list1, Contains.Value(2));
Assert.That(list1, Contains.Value(3));
Assert.That(list1, Contains.Value(4));
Assert.That(list1, Contains.Value(5));
CollectionAssert.DoesNotContain(list1, (RealmValue)1);
CollectionAssert.Contains(list1, (RealmValue)2);
CollectionAssert.Contains(list1, (RealmValue)3);
CollectionAssert.Contains(list1, (RealmValue)4);
CollectionAssert.Contains(list1, (RealmValue)5);
Assert.That(list1, Is.EqualTo(list2).Using(_rvComparer));
Assert.That(dictionary1, new NotConstraint(Contains.Key("key1")));
Assert.That(dictionary1, Contains.Key("key2"));
Assert.That(dictionary1, Contains.Key("key3"));
Assert.That(dictionary1, Is.EqualTo(dictionary2).Using(_rvComparer));
Expand Down

0 comments on commit 6a05037

Please sign in to comment.