public void ResizeBoxSizeIsMaximum_When_ResizeMoreThanMaximum() { //Arrange _resizablePage.ResizeBox.Click(); //Act _resizablePage.DragAndDropToOffset(_resizablePage.ResizeArrow, 350, 150); //Assert _resizablePage.AssertExactPosition(899d, _resizablePage.ResizeArrow.Location.X, 5); _resizablePage.AssertExactPosition(516d, _resizablePage.ResizeArrow.Location.Y, 5); }
public void ResizedResizableShouldBeWithCorrectHeightAfterResizeByYCoordinate() { int yOffset = 45; int borderOffset = 17; int startHeight = _resizablePage.Resizable.Size.Height; _resizablePage.DragAndDropToOffset(0, yOffset); int endHeight = _resizablePage.Resizable.Size.Height; _resizablePage.AssertResizableDimensions((endHeight + borderOffset), (startHeight + yOffset), "Height"); }