I\'m running into an unusual problem in my unit tests. The class I\'m testing creates a dependency property dynamically at runtime and the type of that dependency property c
I don't think you can un-register a dependency property but you can redefine it by overriding the metadata like this:
MyDependencyProperty.OverrideMetadata(typeof(MyNewType), new PropertyMetadata());