Browse Source

add more unit tests

pull/53/merge
Siegfried Pammer 12 years ago
parent
commit
638d9e7324
  1. 8
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/SetPropertyTests.cs

8
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/SetPropertyTests.cs

@ -37,5 +37,13 @@ namespace ICSharpCode.WpfDesign.Tests.Designer @@ -37,5 +37,13 @@ namespace ICSharpCode.WpfDesign.Tests.Designer
button.Properties.GetProperty("Content").SetValue(new StaticExtension("Button.ClickModeProperty"));
AssertCanvasDesignerOutput("<Button Width=\"100\" Height=\"200\" Content=\"{x:Static Member=Button.ClickModeProperty}\" />", button.Context);
}
[Test]
public void SetContentToString()
{
DesignItem button = CreateCanvasContext("<Button Width='100' Height='200'/>");
button.Properties.GetProperty("Content").SetValue("Hello World!");
AssertCanvasDesignerOutput("<Button Width=\"100\" Height=\"200\" Content=\"Hello World!\" />", button.Context);
}
}
}

Loading…
Cancel
Save