Browse Source

Fixes in the Copy UnitTests, they'll work, but the Copied Instance is not the same, so compare the Type of the Copy!

pull/584/head
jkuehner 11 years ago
parent
commit
6e4925fcc5
  1. 11
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/OutlineView/InsertTests.cs

11
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/OutlineView/InsertTests.cs

@ -241,7 +241,6 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView @@ -241,7 +241,6 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView
}
[Test]
[Ignore]
public void CheckStackPanelChildrenCountWhenCopy()
{
InsertIntoButtonByCopy();
@ -250,25 +249,23 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView @@ -250,25 +249,23 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView
}
[Test]
[Ignore]
public void CheckElementInOutlineWhenCopy()
{
InsertIntoButtonByCopy();
Assert.AreEqual(_gridButtonNode, _outline.Children[0]);
Assert.AreEqual(_stackPanelImageNode, _outline.Children[0].Children[0]);
Assert.AreEqual(_stackPanelImageNode.DesignItem.ComponentType, _outline.Children[0].Children[0].DesignItem.ComponentType);
Assert.AreEqual(_stackPanelNode, _outline.Children[1]);
Assert.AreEqual(_stackPanelImageNode, _outline.Children[1].Children[0]);
}
[Test]
[Ignore]
public void CheckElementInDesignerWhenCopy()
{
InsertIntoButtonByCopy();
Assert.AreEqual(_gridButton, _grid.ContentProperty.CollectionElements[0]);
Assert.AreEqual(_stackPanelImage, _grid.ContentProperty.CollectionElements[0].ContentProperty.ValueOnInstance);
Assert.AreEqual(_stackPanel, _grid.ContentProperty.CollectionElements[1]);
Assert.AreEqual(_stackPanel, _grid.ContentProperty.CollectionElements[1].ContentProperty.CollectionElements[0]);
Assert.AreEqual(_stackPanelImage.ComponentType, _grid.ContentProperty.CollectionElements[0].ContentProperty.Value.ComponentType);
Assert.AreEqual(_stackPanel.ComponentType, _grid.ContentProperty.CollectionElements[1].ComponentType);
Assert.AreEqual(_stackPanelImage, _grid.ContentProperty.CollectionElements[1].ContentProperty.CollectionElements[0]);
}
#endregion

Loading…
Cancel
Save