-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RNET-992] Add sync support for collections in mixed #3556
Conversation
Pull Request Test Coverage Report for Build 8611831031Details
💛 - Coveralls |
6a05037
to
9bbfcb4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall it looks good! Just some comments
@@ -236,7 +246,7 @@ public class DataTypeSynchronizationTests : SyncTestBase | |||
public void Dict_Binary() => TestDictionaryCore(o => o.ByteArrayDict, TestHelpers.GetBytes(10), TestHelpers.GetBytes(15), (a, b) => a.SequenceEqual(b)); | |||
|
|||
[Test] | |||
public void Property_Binary() => TestPropertyCore(o => o.ByteArrayProperty, (o, rv) => o.ByteArrayProperty = rv, TestHelpers.GetBytes(5), TestHelpers.GetBytes(10), (a, b) => a!.SequenceEqual(b!)); | |||
public void Property_Binary() => TestPropertyCore(o => o.ByteArrayProperty, (o, rv) => o.ByteArrayProperty = rv, TestHelpers.GetBytes(5), TestHelpers.GetBytes(10)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I adopted the pattern of using Assert.That
with Is.EqualTo().Using()
with the RealmValueWithCollections.RealmValueComparer
. I guess it wraps non-RealmValues in RealmValues, but considered it easier than abstracting the comparison just for this single case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Just left a small comment
@nirinchev This is ready to merge for me if you have nothing against it 😁 |
Description
This adds sync support for collections in mixed fields.
Fixes RNET-992
TODO
Changelog entryCollections in mixed is already part of the changelog.