Skip to content

Commit f74b4dc

Browse files
committed
Changing method name in .NET test
1 parent abfb96f commit f74b4dc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

dotnet/test/common/Interactions/DragAndDropTest.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public void DragAndDropRelative()
2525
{
2626
driver.Url = dragAndDropPage;
2727
IWebElement img = driver.FindElement(By.Id("test1"));
28-
Point expectedLocation = drag(img, img.Location, 150, 200);
28+
Point expectedLocation = Drag(img, img.Location, 150, 200);
2929
Assert.AreEqual(expectedLocation, img.Location);
30-
expectedLocation = drag(img, img.Location, -50, -25);
30+
expectedLocation = Drag(img, img.Location, -50, -25);
3131
Assert.AreEqual(expectedLocation, img.Location);
32-
expectedLocation = drag(img, img.Location, 0, 0);
32+
expectedLocation = Drag(img, img.Location, 0, 0);
3333
Assert.AreEqual(expectedLocation, img.Location);
34-
expectedLocation = drag(img, img.Location, 1, -1);
34+
expectedLocation = Drag(img, img.Location, 1, -1);
3535
Assert.AreEqual(expectedLocation, img.Location);
3636
}
3737

@@ -117,7 +117,7 @@ public void ElementInDiv()
117117
driver.Url = dragAndDropPage;
118118
IWebElement img = driver.FindElement(By.Id("test3"));
119119
Point startLocation = img.Location;
120-
Point expectedLocation = drag(img, startLocation, 100, 100);
120+
Point expectedLocation = Drag(img, startLocation, 100, 100);
121121
Point endLocation = img.Location;
122122
Assert.AreEqual(expectedLocation, endLocation);
123123
}
@@ -153,7 +153,7 @@ public void ShouldAllowUsersToDragAndDropToElementsOffTheCurrentViewPort()
153153
{
154154
driver.Url = dragAndDropPage;
155155
IWebElement img = driver.FindElement(By.Id("test3"));
156-
Point expectedLocation = drag(img, img.Location, 100, 100);
156+
Point expectedLocation = Drag(img, img.Location, 100, 100);
157157
Assert.AreEqual(expectedLocation, img.Location);
158158
}
159159
finally
@@ -230,11 +230,13 @@ public void DragAndDropRelativeAndToElement()
230230
IWebElement img1 = driver.FindElement(By.Id("test1"));
231231
IWebElement img2 = driver.FindElement(By.Id("test2"));
232232
Actions actionProvider = new Actions(driver);
233-
actionProvider.DragAndDropToOffset(img1, 100, 100).DragAndDrop(img2, img1).Perform();
233+
actionProvider.DragAndDropToOffset(img1, 100, 100).Perform();
234+
actionProvider.Reset();
235+
actionProvider.DragAndDrop(img2, img1).Perform();
234236
Assert.AreEqual(img1.Location, img2.Location);
235237
}
236238

237-
private Point drag(IWebElement elem, Point initialLocation, int moveRightBy, int moveDownBy)
239+
private Point Drag(IWebElement elem, Point initialLocation, int moveRightBy, int moveDownBy)
238240
{
239241
Point expectedLocation = new Point(initialLocation.X, initialLocation.Y);
240242
expectedLocation.Offset(moveRightBy, moveDownBy);

0 commit comments

Comments
 (0)