You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The assert indicates that there are distinct NonSerializablePersonForStress objects, with the same field values.
This comment suggests that the test is intended to verify referential identity:
// We put the same object at two different slots. Because the DataContract type
// is marked with [DataContract(IsReference = true)], after serialization-deserialization,
// the objects at this two places should be the same object to each other.
Error message
Assert.Equal() Failure\nExpected: Person[Name=name,Age=30]\nActual: Person[Name=name,Age=30]
Stack trace
at DataContractSerializerTests.DCS_MyPersonSurrogate_Stress() in /_/src/libraries/System.Runtime.Serialization.Xml/tests/DataContractSerializerStressTests.cs:line 62
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) in /_/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs:line 360
The assert indicates that there are distinct NonSerializablePersonForStress objects, with the same field values.
This comment suggests that the test is intended to verify referential identity:
https://dev.azure.com/dnceng/public/_build/results?buildId=598762&view=ms.vss-test-web.build-test-results-tab&runId=18856272&resultId=101137&paneView=debug
netcoreapp5.0-Linux-Debug-arm64-Mono_release-(Ubuntu.1804.ArmArch.Open)[email protected]/dotnet-buildtools/prereqs:ubuntu-16.04-h
The text was updated successfully, but these errors were encountered: