示例#1
0
        private Transform GetTransformAfterDrag(Transform transform, double x, double y)
        {
            Rectangle rectangle = CreateRectangleInGrid();
            TestMouseDragElementBehavior mouseDragElementBehavior = CreateAndAttachMouseDragElementBehavior(rectangle);

            SetRenderTransform(rectangle, transform);

            mouseDragElementBehavior.SimulateDragByDelta(x, y);

            return(rectangle.RenderTransform);
        }
示例#2
0
        private Transform VerifyTransformIsClonedOnDrag(Transform transform)
        {
            Rectangle rectangle = CreateRectangleInGrid();
            TestMouseDragElementBehavior mouseDragElementBehavior = CreateAndAttachMouseDragElementBehavior(rectangle);

            SetRenderTransform(rectangle, transform);

            mouseDragElementBehavior.SimulateDragByDelta(1, 0);

            return(rectangle.RenderTransform);
        }