Ejemplo n.º 1
0
        public void SourceBoxCoordinatesChanged_When_DragAndDropped()
        {
            double sourcePosXBefore = _droppablePage.SourceBox.Location.X;
            double sourcePosYBefore = _droppablePage.SourceBox.Location.Y;

            Builder.DragAndDropToOffset(_droppablePage.SourceBox.WrappedElement, 200, 150).Perform();

            double sourcePosXAfter = _droppablePage.SourceBox.Location.X;
            double sourcePosYAfter = _droppablePage.SourceBox.Location.Y;

            _droppablePage.AssertCoordinates(612, sourcePosXBefore, 3);
            _droppablePage.AssertCoordinates(302, sourcePosYBefore, 3);
            _droppablePage.AssertCoordinates(812, sourcePosXAfter, 3);
            _droppablePage.AssertCoordinates(452, sourcePosYAfter, 3);
        }