public void SlideDownElement_NullOrEmptySelector_ThrowsArgumentNullException( [Values(null, "")] string selector) { Action action = () => Taconite.SlideDown(selector); action.ShouldThrow <ArgumentNullException>(); }
public void SlideDownElement() { var selector = "#selector"; var result = Taconite.SlideDown(selector); result.Commands.Should().HaveCount(1); var command = result.Commands.Single(); command.As <NonElementCommand>() .Should().NotBeNull() .ShouldHave().SharedProperties().EqualTo(new { Command = "slideDown", Selector = selector }); command.As <NonElementCommand>().Arguments.Should().BeEmpty(); }
public TaconiteResult SlideDown() { return(Taconite.SlideDown("#slideDownTarget .example-block")); }