예제 #1
0
        public void TextRestrictedByContainer_when_MovemenToPointOutsideTheContainerIsSet()
        {
            _draggablePage.ContainerRestrictedButton.Click();


            Builder.DragAndDropToOffset(_draggablePage.TextInBox.WrappedElement, 25, 25).Perform();


            _draggablePage.AssertLocations(373d, _draggablePage.TextInBox.Location.X, 3);
            _draggablePage.AssertLocations(560d, _draggablePage.TextInBox.Location.Y, 3);
        }
예제 #2
0
        public void TextRestrictedByContainer_when_MovemenToPointOutsideTheContainerIsSet()
        {
            _draggablePage.ContainerRestrictedButton.Click();


            Builder.DragAndDropToOffset(_draggablePage.TextInBox, 100, 100).Perform();

            var x_locationAfter = _draggablePage.TextInBox.Location.X;
            var y_locationAfter = _draggablePage.TextInBox.Location.Y;

            _draggablePage.AssertLocations(314d, x_locationAfter, 3);
            _draggablePage.AssertLocations(663d, y_locationAfter, 3);
        }