Beispiel #1
0
        public void CanInsertIntoButton()
        {
            /* Insert Image into the Grid's button. This has now to be true because a button can now
             * add element's by moving elements
             * See DefaultPlacementBehavior.CanContentControlAdd() */

            Assert.IsTrue(_gridButtonNode.CanInsert(new[] { _stackPanelImageNode }, null, false));
        }
Beispiel #2
0
 public void CanInsertIntoStackPanel()
 {
     // Move parent into one of it's children, Grid into StackPanel.
     Assert.IsTrue(_stackPanelNode.CanInsert(new[] { _outline }, _outline, false));
 }
Beispiel #3
0
 public void CanInsertIntoGrid()
 {
     // Check if StackPanel's button can be inserted after Grid's first button.
     Assert.IsTrue(_outline.CanInsert(new[] { _stackPanelButtonNode }, _gridButtonNode, false));
 }