Add SyncSortedList serialization test and remove SyncRoot (dotnet/corefx#34339)
authorViktor Hofer <viktor.hofer@microsoft.com>
Tue, 8 Jan 2019 16:46:36 +0000 (17:46 +0100)
committerGitHub <noreply@github.com>
Tue, 8 Jan 2019 16:46:36 +0000 (17:46 +0100)
commit4a649721d14460a320bb292bf8baa30691ff9196
tree017b998e8440efa15b9cfc4d19b879c77f11ed46
parent7ba60ba7fcc25f7bc436440401e49aa812b76719
Add SyncSortedList serialization test and remove SyncRoot (dotnet/corefx#34339)

* Add SyncSortedList serialization tests and remove SyncRoot

* Disable blob comparison for SyncSortedList

On UWP we get different blobs for SyncSortedList as reflection behaves
differently as the amount of types that we tests is less than in
.NET Core and .NET Framework. The order of fields that are serialized
into the payload are different in such a case.
Therefore we just disable the blob comparison for this type entirely.

Commit migrated from https://github.com/dotnet/corefx/commit/de591233c04efa019ea2aed0a8fc5181f6d4210b
src/libraries/System.Collections.NonGeneric/src/System/Collections/SortedList.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTestData.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs