-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add test for issue #114813 #119374
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
Add test for issue #114813 #119374
Conversation
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.
Pull Request Overview
This PR adds a regression test for issue #114813, which appears to be related to DateTimeOffset serialization when using DataContractSerializer within an IXmlSerializable implementation. The test is designed to validate that DateTimeOffset values round-trip correctly in this specific scenario.
Key changes:
- Added a new test container class
DateTimeOffsetIXmlSerializableContainerthat implements IXmlSerializable - Added a test method
DCS_DateTimeOffsetInIXmlSerializableContainerto verify proper serialization/deserialization behavior
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| SerializationTypes.cs | Added DateTimeOffsetIXmlSerializableContainer class that wraps DateTimeOffset serialization using DataContractSerializer within IXmlSerializable implementation |
| DataContractSerializer.cs | Added test method to verify DateTimeOffset round-trip serialization works correctly in the IXmlSerializable scenario |
src/libraries/System.Runtime.Serialization.Xml/tests/DataContractSerializer.cs
Outdated
Show resolved
Hide resolved
mconnew
left a comment
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.
![]()
40903d6 to
9065252
Compare
|
/backport to release/10.0 |
|
Started backporting to release/10.0: https://github.com/dotnet/runtime/actions/runs/17996489224 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…us/simlutaneous PR
…mlutaneous changes in test types from ofther PR.
1823704 to
7afc9e3
Compare
Add test for issue #114813
Will fail if merged before fix (PR #114969)