public void SourseBoxPositionChanged_When_MoveSourseBoxToTargetBox() { var sourcePosXBefore = _droppablePage.SourceBox.Location.X; var sourcePosYBefore = _droppablePage.SourceBox.Location.Y; Builder.DragAndDrop(_droppablePage.SourceBox, _droppablePage.TargetBox).Perform(); var sourcePosXAfter = _droppablePage.SourceBox.Location.X; var sourcePosYAfter = _droppablePage.SourceBox.Location.Y; _droppablePage.AssertPositionChanged(sourcePosXBefore, sourcePosXAfter); _droppablePage.AssertPositionChanged(sourcePosYBefore, sourcePosYAfter); }
public void SourseBoxPositionChanged_When_MoveSourseBoxToTargetBox() { //Arrange double sourcePosXBefore = _droppablePage.SourceBox.Location.X; double sourcePosYBefore = _droppablePage.SourceBox.Location.Y; //Act _droppablePage.DragAndDrop(_droppablePage.SourceBox, _droppablePage.TargetBox); double sourcePosXAfter = _droppablePage.SourceBox.Location.X; double sourcePosYAfter = _droppablePage.SourceBox.Location.Y; //Assert _droppablePage.AssertPositionChanged(sourcePosXBefore, sourcePosXAfter); _droppablePage.AssertPositionChanged(sourcePosYBefore, sourcePosYAfter); }