Skip to content
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

Fix serialization issue with TestRunSettings #3317

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

Evangelink
Copy link
Member

Use auto-property code-fix changed the readonly property into a private setter property which seems to change the behavior of the xml serializer. I have kept a property only but moved to a readonly property.

cc @AbhitejJohn

Use auto-property code-fix changed the readonly property into a private setter property which seems to change the behavior of the xml serializer. I have kept a property only but moved to a readonly property.
@@ -46,6 +45,7 @@ protected TestRunSettings(string name)
/// Converter the setting to be an XmlElement.
/// </summary>
/// <returns>The Xml element for the run settings provided.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1059:MembersShouldNotExposeCertainConcreteTypes", Justification = "XmlElement is required in the data collector.")]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's unrelated but I noticed this was removed during the reformatting and should not have been.

@Evangelink Evangelink merged commit e8b14ab into microsoft:main Feb 2, 2022
@Evangelink Evangelink deleted the fix-bug-serialization branch February 2, 2022 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants