Browse Source

WhenCopy Unit Tests now work!

But they need to check for Types, not for the Instance because the Instance is Cloned
pull/52/head
jkuehner 12 years ago
parent
commit
c68614cfd6
  1. 21
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.Designer/Tests/Designer/OutlineView/InsertTests.cs

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

@ -104,7 +104,7 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView @@ -104,7 +104,7 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView
}
[Test]
[Ignore]
//[Ignore]
public void CheckGridChildrenCountWhenCopy()
{
InsertIntoGridByCopy();
@ -113,7 +113,7 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView @@ -113,7 +113,7 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView
}
[Test]
[Ignore]
//[Ignore]
public void CheckStackPanelChildrenCountWhenCopy()
{
InsertIntoGridByCopy();
@ -122,25 +122,24 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView @@ -122,25 +122,24 @@ namespace ICSharpCode.WpfDesign.Tests.Designer.OutlineView
}
[Test]
[Ignore]
//[Ignore]
public void CheckElementsInOutlineWhenCopy()
{
InsertIntoGridByCopy();
Assert.AreEqual(_gridButtonNode, _outline.Children[0]);
Assert.AreEqual(_stackPanelButtonNode, _outline.Children[1]);
Assert.AreEqual(_stackPanelNode, _outline.Children[2]);
Assert.AreEqual(_stackPanelButtonNode, _stackPanelButtonNode.Children[0]);
Assert.AreEqual(_gridButtonNode.DesignItem.Component.GetType(), _outline.Children[0].DesignItem.Component.GetType());
Assert.AreEqual(_stackPanelButtonNode.DesignItem.Component.GetType(), _outline.Children[1].DesignItem.Component.GetType());
Assert.AreEqual(_stackPanelNode.DesignItem.Component.GetType(), _outline.Children[2].DesignItem.Component.GetType());
}
[Test]
[Ignore]
//[Ignore]
public void CheckElementsInDesignerWhenCopy()
{
InsertIntoGridByCopy();
Assert.AreEqual(_gridButton, _grid.ContentProperty.CollectionElements[0]);
Assert.AreEqual(_stackPanelButton, _grid.ContentProperty.CollectionElements[1]);
Assert.AreEqual(_stackPanel, _grid.ContentProperty.CollectionElements[2]);
Assert.AreEqual(_stackPanelButton, _stackPanel.ContentProperty.CollectionElements[0]);
Assert.AreEqual(_stackPanelButton.Component.GetType(), _grid.ContentProperty.CollectionElements[1].Component.GetType());
Assert.AreEqual(_stackPanel.Component.GetType(), _grid.ContentProperty.CollectionElements[2].Component.GetType());
Assert.AreEqual(_stackPanelButton.Component.GetType(), _stackPanel.ContentProperty.CollectionElements[0].Component.GetType());
}
#endregion
}

Loading…
Cancel
Save