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); }
private Transform VerifyTransformIsClonedOnDrag(Transform transform) { Rectangle rectangle = CreateRectangleInGrid(); TestMouseDragElementBehavior mouseDragElementBehavior = CreateAndAttachMouseDragElementBehavior(rectangle); SetRenderTransform(rectangle, transform); mouseDragElementBehavior.SimulateDragByDelta(1, 0); return(rectangle.RenderTransform); }