コード例 #1
0
        public void RemoveElement_NullOrEmptyTargetSelector_ThrowsArgumentNullException(
            [Values(null, "")] string selector)
        {
            Action action = () => Taconite.Remove(selector);

            action.ShouldThrow <ArgumentNullException>();
        }
コード例 #2
0
        public void RemoveElement()
        {
            var selector = "#selector";

            var result = Taconite.Remove(selector);

            result.Commands.Should().HaveCount(1);
            var command = result.Commands.Single();

            command.As <NonElementCommand>()
            .Should().NotBeNull()
            .ShouldHave().SharedProperties().EqualTo(new
            {
                Command  = "remove",
                Selector = selector
            });
            command.As <NonElementCommand>().Arguments.Should().BeEmpty();
        }
コード例 #3
0
 public TaconiteResult Remove()
 {
     return(Taconite.Remove("#removeTarget .example-block"));
 }