diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/SetPropertyTests.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/SetPropertyTests.cs
index ac1ee42aa2..c1ad04f4f9 100644
--- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/SetPropertyTests.cs
+++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/SetPropertyTests.cs
@@ -21,20 +21,22 @@ namespace ICSharpCode.WpfDesign.Tests.Designer
AssertCanvasDesignerOutput("", button.Context);
}
- [Test, Ignore("Properties are not present in XAML DOM")]
+ [Test]
public void SetContentToStaticResource()
{
DesignItem button = CreateCanvasContext(@"");
- button.Properties.GetProperty("Content").SetValue(new StaticResourceExtension("MyBrush"));
+ button.Properties.GetProperty("Content").SetValue(new StaticResourceExtension());
+ button.Properties.GetProperty("Content").Value.Properties["ResourceKey"].SetValue("MyBrush");
// TODO : maybe we should support positional arguments from ctors as well => {StaticResource MyBrush}?
AssertCanvasDesignerOutput("", button.Context);
}
- [Test, Ignore("Properties are not present in XAML DOM")]
+ [Test]
public void SetContentToXStatic()
{
DesignItem button = CreateCanvasContext("");
- button.Properties.GetProperty("Content").SetValue(new StaticExtension("Button.ClickModeProperty"));
+ button.Properties.GetProperty("Content").SetValue(new StaticExtension());
+ button.Properties.GetProperty("Content").Value.Properties["Member"].SetValue("Button.ClickModeProperty");
AssertCanvasDesignerOutput("", button.Context);
}