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

Add unit test for RuleDictionaryConverter #270

Merged
1 commit merged into from May 13, 2016
Merged

Add unit test for RuleDictionaryConverter #270

1 commit merged into from May 13, 2016

Conversation

ghost
Copy link

@ghost ghost commented May 13, 2016

Also:

  • DRY out tests

@@ -117,6 +118,22 @@ public void SetProperty<T>(string propertyName, T value)
Properties[propertyName] = new SerializedPropertyInfo(serializedValue, isString);
}

public void SetPropertiesFrom(IPropertyBagHolder other)
Copy link
Author

@ghost ghost May 13, 2016

Choose a reason for hiding this comment

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

Oh right, this is the reason for this whole PR. Adding this API to ensure properties of all types (not just strings) can be copied from one holder to another, as required by the RuleDictionaryConverter.

@michaelcfanning
Copy link
Member

+1 nice change.

@ghost
Copy link
Author

ghost commented May 13, 2016

Thanks


In reply to: 219159219 [](ancestors = 219159219)

@ghost ghost merged commit 4c3bd10 into microsoft:master May 13, 2016
This pull request was closed.
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.

1 participant