コード例 #1
0
        public void DropElementChangeColorOfTarget_When_DragAndDropDragMe()
        {
            var colorBefore = _droppablePage.TargetBox.GetCssValue("background-color");

            Builder.DragAndDrop(_droppablePage.SourceBox, _droppablePage.TargetBox).Perform();
            var colorAfter = _droppablePage.TargetBox.GetCssValue("background-color");

            _droppablePage.AssertColorChanged(colorBefore, colorAfter);
        }
コード例 #2
0
        public void DropElementChangeColorOfTarget_When_DragAndDropDragMe()
        {
            //Arrange
            string colorBefore = _droppablePage.TargetBox.GetCssValue("background-color");

            //Act
            _droppablePage.DragAndDrop(_droppablePage.SourceBox, _droppablePage.TargetBox);
            string colorAfter = _droppablePage.TargetBox.GetCssValue("background-color");

            //Assert
            _droppablePage.AssertColorChanged(colorBefore, colorAfter);
        }