public void ConstraintsResizeWidthAndHeight() { var resizablePage = new ResizablePage(this.driver); //window 181x28 resizablePage.ConstraintsIncreaseWidthAndHeightBy(250, 200); //Limit movement to 181x138 pixels resizablePage.AssertConstraintsNewSize(250, 200); resizablePage.ConstraintsIncreaseWidthAndHeightBy(-50, -20); resizablePage.AssertConstraintsNewSize(-50, -20); resizablePage.ConstraintsIncreaseWidthAndHeightBy(0, 50); resizablePage.AssertConstraintsNewSize(0, 50); resizablePage.ConstraintsIncreaseWidthAndHeightBy(-80, 80); resizablePage.AssertConstraintsNewSize(-80, 80); }