runtime: Desktop: DataContractSerializerTests.DCS_ReadOnlyDictionary failed with "Xunit.Sdk.EqualException"
DataContractSerializerTests.DCS_ReadOnlyDictionary [FAIL]
Message:
XML comparison is also failing
Test failed for input: System.Collections.ObjectModel.ReadOnlyDictionary`2[System.String,System.Int32
Expected: <ReadOnlyDictionaryOfstringint xmlns="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><_dictionary xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringint><a:Key>Foo</a:Key><a:Value>1</a:Value></a:KeyValueOfstringint><a:KeyValueOfstringint><a:Key>Bar</a:Key><a:Value>2</a:Value></a:KeyValueOfstringint></_dictionary></ReadOnlyDictionaryOfstringint>
Actual: <ReadOnlyDictionaryOfstringint xmlns="http://schemas.datacontract.org/2004/07/System.Collections.ObjectModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><m_dictionary xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:KeyValueOfstringint><a:Key>Foo</a:Key><a:Value>1</a:Value></a:KeyValueOfstringint><a:KeyValueOfstringint><a:Key>Bar</a:Key><a:Value>2</a:Value></a:KeyValueOfstringint></m_dictionary></ReadOnlyDictionaryOfstringint>
Expected: True
Actual: False
Stack Trace: at DataContractSerializerTests.SerializeAndDeserialize[T](T value, String baseline, DataContractSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare) in D:\j\workspace\outerloop_net—903ddde6\src\System.Runtime.Serialization.Xml\tests\DataContractSerializer.cs:line 2799 at DataContractSerializerTests.DCS_ReadOnlyDictionary() in D:\j\workspace\outerloop_net—903ddde6\src\System.Runtime.Serialization.Xml\tests\DataContractSerializer.cs:line 1891
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 29 (27 by maintainers)
In general we don’t plan to support binary serialization exchange between .NET Core and .NET Framework, nor between version of .NET Core. @stephentoub to verify his undrestanding also.
This issue is of course in your area and it’s entirely up to you whether you want to fix it though.